With the IDEA of a graphical operation interface will commit the code, a little busy at that time may forget to push to the far end,
(I'm not too will use command, so every time with a graphical interface or sourceTreer submit code,)
After each time I submit code will take a look at the far end page submit records, found no I submit a record, then I see the local code is the latest revision of mine, so I guess may be forget to push,
Then I won't find, don't know where have a commit,
Then I will code and made a small change, I again commit and push to the far end, and then submit records the page, but I found it automatically help me do a merge on the far side of my local branch code and merged,
Didn't look closely at the time, afterwards just know I can't put a lot of local need to submit code together, and went in, and I don't know,
I don't quite understand, I where do wrong, or why he put all my local code together, and went in, should not modify and and I make up,
Not quite understand, don't quite understand principle, have asked what a great god for giving me the trailing explain, thanks a lot!
Description: commit code, no mention at all of the distal, modify the code and submit the code again to irrational, local branches throughout the us in (do not need to, don't want to merge the code to the far end)
CodePudding user response:
Just like looking at the AI written contentCodePudding user response:
Submit three steps:1. The git add.
2. The git commit -m ""
3. The git push
When you use the idea, may at the time of the commit, the local don't need to code is checked, then push it will push up,
CodePudding user response:
No, I look at the record, submit only I'd like to make the code in the record, just automatically merge the, my local merged the whole project and the remote, don't know what the reason,CodePudding user response:
First of all, the merge is combine two branches, the body of the merger is two branches, according to your description of the problem, the merger should be remote branch and local branch of the merger,So what time will be automatically merged, great may be merged automatically when performing a pull command, pull command includes two operations: 1. The fetch updated remote branch 2. Merge incorporating local branch and remote branch,
So, we can see that the merge only local submitted code merged with remote code, does not appear without local submit code automatically merged, and if local have uncommitted code, without synchronous remote code, perform a pull command will be rejected,
CodePudding user response:
Educated, but merger is only my local code, distal not merged code,CodePudding user response:
Look at your local branch before you submit is point to where?Because in the git add. The path when the following all the files are added
Pictured above "springboot" file will be submitted in the directory