Relative Content

Tag Archive for gitintellij-idea

How do I change the branch for my project using IntelliJ?

I am pretty new to git. I wanted to create a project and I’m using IntelliJ to clone my repository. Unfortunately IntelliJ has its own branch being created (called master). Now I want to submit my changes to main, not to master.

Can not remove files from git due to line endings

I do have two files in my project where git tells me I do have changes in. When I click on the changes the diff says “contents are identical”. Which makes sense because I’ve never actively touched those files.
One of the files is a “yml” file and the other one “gradlew.bat” Both files are CRLF. When I do run git add . it gives me this error
warning: in the working copy of 'file.yml', CRLF will be replaced by LF the next time Git touches it