I am new to git and I am just learning..
I setup a github project to test and I been working local to..
I hear that you should never work out of the master and it should be production ready. so I did the following
I did a
git branch myfix
git checkout
made my changes and did a
git commit -a
but how do I tell it to move my code into the master branch?
Well
git checkout
should actually be
git checkout myfix
If you did in fact do this then you can "move" the code into the master branch like so
git checkout master
git merge myfix
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.