16. GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
7
17. GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
7
18. GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
▸ git push origin abc local abc to default remote abc branch
7
19. GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
▸ git push origin abc local abc to default remote abc branch
▸ git push heroku feat:master feat onto heroku remote master
7
20. GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
▸ git push origin abc local abc to default remote abc branch
▸ git push heroku feat:master feat onto heroku remote master
▸ git push :feat delete default remote feat branch
7
21. GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
▸ git push origin abc local abc to default remote abc branch
▸ git push heroku feat:master feat onto heroku remote master
▸ git push :feat delete default remote feat branch
▸ git push : push to default remote all the branches […]
7
52. ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/
develop
def
develop
origin/
develop
def
not easily
accessible
53. ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/
develop
def
develop
origin/
develop
def
not easily
accessible
SHA1
develop@{1}
54. ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/
develop
def
develop
origin/
develop
def
not easily
accessible
SHA1
develop@{1}
will be garbage
collected
55. ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/
develop
def
develop
origin/
develop
def
LOCAL
CHANGES
LOST
not easily
accessible
SHA1
develop@{1}
will be garbage
collected
56. ORIGIN (server) LOCAL
LOCAL
git branch -f develop origin/develop
19
develop
origin/
develop
def
develop
origin/
develop
def
LOCAL
CHANGES
LOST
not easily
accessible
SHA1
develop@{1}
will be garbage
collected