mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-21 20:35:12 +00:00
Update git cheetsheet
add remote reposiory
This commit is contained in:
parent
05f8c9ee01
commit
5fa1f190c1
@ -1,4 +1,5 @@
|
|||||||
git init # initiates git in the current directory
|
git init # initiates git in the current directory
|
||||||
|
git remote add origin https://github.com/repo_name.git # add remote reposiory
|
||||||
git clone <address> # creates a git repo from given address (get the address from your git-server)
|
git clone <address> # creates a git repo from given address (get the address from your git-server)
|
||||||
git clone <address> -b <branch_name> <path/to/directory> # clones a git repo from the address into the given directory and checkout's the given branch
|
git clone <address> -b <branch_name> <path/to/directory> # clones a git repo from the address into the given directory and checkout's the given branch
|
||||||
git clone <address> -b <branch_name> --single-branch # Clones a single branch
|
git clone <address> -b <branch_name> --single-branch # Clones a single branch
|
||||||
|
Loading…
Reference in New Issue
Block a user