简体   繁体   中英

I have messed up my git - badly

I am using git for the 1st time to work with someone in Vietnam. I have another git project in which I have made the same mistakes.

Essentially I have never merged. Anything. Ever.

I have branched 3/4 times. And when the working copy tick (I am using source tree in is the right spot I get the right files in my localhost htdocs and the site works as I expect.

The problem is, the 1st master branch is way way down the other end. and there are are various branches that just seem to stop.

Obviously I need help. I am getting to end of releasing this git to the client future. I want to least look like I know what I was doing with git.pill now I have been a 'one wolf;

Here is an image of the repo. The very bottom is cut off, but they are just the initial commit and a couple of gitignore changes. The real fun starts with the first branch off the master - that I never did merge back again. 在此处输入图片说明

The site ATM is working how is should. So I assume I have done something right, I just feel like its all over the place? I am sure I am supposed to merge branches back into the master if they are right and delete them if the don't work out - right?

If the site is working as it should at the moment, and your changes are on a different branch. Make sure you have committed everything you want to that branch, then merge the branch back into master.

Here is how you would merge your branch into master : https://stackoverflow.com/a/5602109/2657859

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