From 5fa1f190c1a913d39f164155f2114c8158982b08 Mon Sep 17 00:00:00 2001 From: Eyob Mulualem Date: Fri, 7 May 2021 08:04:22 +0300 Subject: [PATCH] Update git cheetsheet add remote reposiory --- tools/git.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/git.sh b/tools/git.sh index c0154f0..bbbd86b 100644 --- a/tools/git.sh +++ b/tools/git.sh @@ -1,4 +1,5 @@ git init # initiates git in the current directory +git remote add origin https://github.com/repo_name.git # add remote reposiory git clone
# creates a git repo from given address (get the address from your git-server) git clone
-b # clones a git repo from the address into the given directory and checkout's the given branch git clone
-b --single-branch # Clones a single branch