[New post] Selectively commiting parts of a file using git add –patch
ricksonmenezes posted: " I have changes like above in 3 different parts of the same file. I didn't know that you could selectively commit things in Git. Perhaps Intellij does that all for you by a GUI. It's nice to know we can even use commands for it. I needed to dr"
Respond to this post by replying above this line
New post on Trying to post some tech ideas that enthused me.
I have changes like above in 3 different parts of the same file. I didn't know that you could selectively commit things in Git. Perhaps Intellij does that all for you by a GUI. It's nice to know we can even use commands for it.
I needed to drop the folder strucutre to use git inside of the folder where the file is.
git add --patch . What is interesting is that we are usually inclined to "commit" when the file already exists. This pluralsight has shown that you can keep using the git add comman for existing file with changes
You can see the changes - at least the first change - in the terminal section.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.