|
|
|
|
|
by valid_username
2182 days ago
|
|
May be if you can give some examples of screw up you had, we can understand the exact problem and provide some help. My advice would be to understand how git works under the hood, after that you will be easily able to visualize git commands in you head and execute them with confidence. |
|
I started a new branch and developed on it.
I realized that my installs were no longer updating when I did a git pull, because I was no longer committing to master.
So I did a git checkout on the installs, and all was good.
Then, I wanted to merge the branch into master, so I did.
Then I did a "git push".
This is where things got screwed up, I think, because I did not know that, apparently, git does not push the whole tree in this case, only the currently selected branch. (wtf?)
After this, I looked at my local code, and some of my recent changes were gone, because it had either reverted to ... some older fucking version.
And that's when I posted this thread.