Don Rhummy
Don Rhummy

Reputation: 25830

How push only the files from commit to git remote in IntelliJ?

In my project, when I choose "commit changes", I get a pop-up window where I can unselect some files. After doing this and clicking "commit and push", on the push window it still shows the files I unselected and there's no way to unselect them.

After a push, it shows those files' changes on the remote server.

How do I keep certain file changes from being pushed to the remote?

I don't want to remove them from git source control, just from pushing my changes of them.

Upvotes: 0

Views: 1036

Answers (1)

everag
everag

Reputation: 7662

You don't push files to your remote, you push commits (changesets). That's why Intellij wouldn't allow you to deselect anything when you are pushing.

Pushing basically sends a commit delta (commits you have and the remote doesn't) to the remote.

Upvotes: 1

Related Questions