简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM