Add github quick setup
This commit is contained in:
parent
c1450ce0ff
commit
1aabe90518
32
README.org
32
README.org
@ -1965,6 +1965,38 @@ git push
|
|||||||
git checkout master
|
git checkout master
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** Github quick setup
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: sec:github-quick-setup
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+caption[Make a new repository on the command line]:
|
||||||
|
#+caption: Make a new repository on the command line.
|
||||||
|
#+name: lst:make-new-git-repo
|
||||||
|
#+begin_src shell -n :eval never
|
||||||
|
echo "# org-oxx" >> README.md
|
||||||
|
git init
|
||||||
|
git add README.md
|
||||||
|
git commit -m "first commit"
|
||||||
|
git branch -M main
|
||||||
|
git remote add origin git@github.com:gav451/org-oxx.git
|
||||||
|
git push -u origin main
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+caption[Push an old git repository on the command line]:
|
||||||
|
#+caption: Push an old git repository on the command line.
|
||||||
|
#+name: lst:push-old-git-repo
|
||||||
|
#+begin_src shell -n :eval never
|
||||||
|
git remote add origin git@github.com:gav451/org-oxx.git
|
||||||
|
git branch -M main
|
||||||
|
git push -u origin main
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
*** Learn git
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: sec:learn-git
|
||||||
|
:END:
|
||||||
|
|
||||||
Useful [[https://git-scm.com/book/en/v2][Git]] links are:
|
Useful [[https://git-scm.com/book/en/v2][Git]] links are:
|
||||||
- [[https://sentry.io/answers/abort-a-merge-in-git/][Abort a merge in Git]]
|
- [[https://sentry.io/answers/abort-a-merge-in-git/][Abort a merge in Git]]
|
||||||
- [[https://sentry.io/answers/change-the-uri-for-a-git-remote/][Change the URI for a Git remote]]
|
- [[https://sentry.io/answers/change-the-uri-for-a-git-remote/][Change the URI for a Git remote]]
|
||||||
|
Loading…
Reference in New Issue
Block a user