File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -797,10 +797,40 @@ upstream, see 'push.autoSetupRemote' in 'git help config'.
797
797
798
798
[ ` git config --global push.autoSetupRemote true ` ] ( https://git-scm.com/docs/git-config#Documentation/git-config.txt-pushautoSetupRemote )
799
799
800
+ <br />
801
+
800
802
::: callout-warning
801
803
I set this globally because my workflow is pretty basic, ymmv
802
804
:::
803
805
806
+ ## ` git push -u `
807
+
808
+ ``` bash
809
+ ❯ git push -u origin second-branch
810
+ Enumerating objects: 5, done.
811
+ Counting objects: 100% (5/5), done.
812
+ Delta compression using up to 8 threads
813
+ Compressing objects: 100% (2/2), done.
814
+ Writing objects: 100% (3/3), 308 bytes | 308.00 KiB/s, done.
815
+ Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
816
+ remote:
817
+ remote: Create a pull request for ' second-branch' on GitHub by visiting:
818
+ remote: https://github.com/edavidaja/intro-git/pull/new/second-branch
819
+ remote:
820
+ To https://github.com/edavidaja/intro-git.git
821
+ * [new branch] second-branch -> second-branch
822
+ branch ' second-branch' set up to track ' origin/second-branch' .
823
+ ```
824
+
825
+ ## permissions & project management
826
+
827
+ ![ ] ( ./img/gh-pr.png )
828
+
829
+ ::: notes
830
+ GitHub makes it easier to collaborate on who is allowed to make changes to projects and under what circumstances
831
+ you might want to condition a merge on whether all your test pass with the new code
832
+ :::
833
+
804
834
# unhappy paths
805
835
806
836
## push rejection
You can’t perform that action at this time.
0 commit comments