You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- I forgot to add sth: `git reset --soft HEAD~1`, `git status`
60
61
-`git diff`, `git diff HEAD` because already staged
61
62
-`git log`
62
63
-`git commit`
63
64
- actually all that is nonsense: `git reset --hard HEAD~1`
64
-
- modify again, all nonsense before committing: `git checkout src/action/Action.hpp`
65
65
66
66
- (5) Stash
67
67
- while working on unfinished feature, I need to change / test this other thing quickly, too lazy for commits / branches
@@ -70,7 +70,6 @@ Starting remarks:
70
70
71
71
- (6) Create PR
72
72
- create commit again
73
-
- preview what will be in PR: `git diff develop..add-demo-feature`
74
73
-`git push -u myfork add-demo-feature` -> copy link
75
74
- explain PR template
76
75
- explain target branch
@@ -87,13 +86,17 @@ Starting remarks:
87
86
-`git checkout -t alex/[branch-name]`
88
87
- I could now also push to `ajaust`'s remote
89
88
89
+
- (8) GitHub CLI
90
+
-`git push -u ...` and `git pull -t ...` maybe hard to remember at first.
91
+
- Things get easier with the [GitHub CLI](https://cli.github.com/), but bound to GitHub, obviously.
92
+
90
93
## Further reading
91
94
92
95
### Quick things
93
96
94
97
-[Video: Git in 15 minutes: basics, branching, no remote](https://www.youtube.com/watch?v=USjZcfj8yxE)
95
98
-[The GitHub Blog: Commits are snapshots, not diffs](https://github.blog/2020-12-17-commits-are-snapshots-not-diffs/)
96
-
- Chapters [6](https://merely-useful.tech/py-rse/git-cmdline.html) and [7](https://merely-useful.tech/py-rse/git-advanced.html) of Research Software Engineering with Python
99
+
- Chapters [6](https://third-bit.com/py-rse/git-cmdline.html) and [7](https://third-bit.com/py-rse/git-advanced.html) of Research Software Engineering with Python
97
100
-[Podcast All Things Git: History of VC](https://www.allthingsgit.com/episodes/the_history_of_vc_with_eric_sink.html)
0 commit comments