forked from jennybc/happy-git-with-r
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# (PART) Daily workflows {-} | ||
|
||
# Doing your work (and undoing it) {#workflows-intro .unnumbered} | ||
|
||
*most of this only exists in workshop materials but will eventually be recorded here as well* | ||
|
||
Git patterns that come up frequently in real work: | ||
|
||
* Commit early and often. The Repeated Amend. | ||
* Burn it all down. | ||
* Fork and clone. | ||
* Adding a remote. | ||
* Branching. | ||
* Time travel: | ||
- "I just need to see the past". Browse and search on GitHub. | ||
- "I need to visit the past". Create a checkout a branch. | ||
- "I want to return to the past". `git revert`, `git reset` | ||
- "I had a great cookie last October". `git cherry pick`, `git checkout REF -- path` | ||
* [Can't push due to upstream changes?](#pull-tricky) | ||
- Pull (rebase? merge?), then push. Yay. | ||
- Pull, oops merge conflicts, abort. Come back later. | ||
- Pull, oops merge conflicts, resolve them. Push. | ||
|
||
Collaborative development: | ||
|
||
* [Explore and extend a pull request](#pr-extend) |
File renamed without changes.