4 ms·
That was worth reading to find out that I could rename origin to github. For some reason I find the word origin really confusing. There's a couple of other goo
by arockwell 18y ago
That was worth reading to find out that I could rename origin to github. For some reason I find the word origin really confusing.
There's a couple of other good tidbits in there if you're still a git neophyte like myself.
- lbrandy 18y agoFor example, this bit: # git stash (all my changes are saved away, and I have a clean tree) # Fix the bug # git commit -a -m "bugfix" # git stash pop (changes are back) This is the type of stuff that make SVN people "get it".
- llimllib 18y agoI only do that if the "bugfix" is miniscule; I've forgotten stashes, and had severely painful efforts to merge them back in. Now I only stash for a very brief period of time. Otherwise, I use a new topic branch instead of stashing. Branching takes so little effort.
- PStamatiou 18y agoI've lost code with stash. Be wary.
- globalrev 18y agoI didn't catch how, could you explain?
- arockwell 18y agoRename 'origin' to 'github' in .git/config. This is from the 'ENLIGHTENMENT' section in the article.
- lnguyen 18y agoOr just run the command git branch -m origin github
- lnguyen 18y agoOoops... my bad should have been git remote rename origin github Had branches on the mind and didn't catch it till just now and the edit window is closed. For the most part you can tweak most of the configs via command-line: git branch, git remote, or git config. I switch between those and editing the .git/config directly depending on the scope of the changes.
- deleted 18y ago[deleted]