-
Notifications
You must be signed in to change notification settings - Fork 27
GitHub Resources for Crises #92
Comments
Reverting, Rewinding and Rebasing: |
Here are some more basic shell commands: https://www.siteground.com/tutorials/git/commands.htm |
I needed to restore a directory I deleted months ago, and this site walked me through it: http://gitready.com/intermediate/2009/03/18/restoring-a-directory-from-history.html |
When resolving a merge issue or a merge conflict, the Terminal or Git bash shell brings up a text editor named vim, and asks you to write a commit message in it. To complete the message, you need to type 'I', and type a commit message (no quotation marks needed). Then, to exit vim, you need to enter the following sequence:
or try
See http://unix.stackexchange.com/questions/181280/how-to-exit-a-git-merge-asking-for-commit-message |
Here's more on the weird little "vim" editor that pops up in Git Bash (windows) or Terminal (mac) sometimes when you're resolving a merge conflict. It's an old text editor that runs entirely from your keyboard (no mouse), and if you want to learn (as I do) how to use it effectively, here's a very helpful post on how to use it right: https://www.linux.com/learn/vim-101-beginners-guide-vim |
A "merge tool" is software you can open from command line to help resolve a merge conflict when you need to hand-correct the files. We could really open those files in any text or code editor (including oXygen), but some software like Meld helps because it highlights differences and can make it visually easier to choose the alternates. To really understand what happens when Git does a merge, and to take the most advantage of Meld, I recommend taking a look at this article: |
@RJP43 @ajnewton1 @jonhoranic @bsf15 @ahunker @Samantha-Mcguigan
This uses the |
I'm adding some GitHub resources to help quickly in case of crises. Please add to this as you find helpful resources!
Guidance for merge-conflicts:
https://help.github.com/articles/resolving-a-merge-conflict-from-the-command-line/
The text was updated successfully, but these errors were encountered: