8000 including infos about remotes, merging, stashing · ssh-juan/github-foundations@1648c0b · GitHub
[go: up one dir, main page]

Skip to content

Commit 1648c0b

Browse files
committed
including infos about remotes, merging, stashing
1 parent 75bbd72 commit 1648c0b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

git-crash-course/readme.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,32 @@ git checkout {dev}
103103

104104
## Remotes
105105

106+
We can add remotes but often you will just add remote via upstream when adding a branch.
107+
108+
```ssh
109+
got remote add ...
110+
git branch -u origin new-feature
111+
```
112+
106113
## Stashing
107114

115+
```
116+
git stash list
117+
git stash
118+
git stash save my-name
119+
git stash apply
120+
git stash pop
121+
```
122+
123+
* NOT USE IN A CLOUD ENV, BECAUSE YOU CAN LOST DATA
124+
108125
## Merging
109126

127+
```
128+
git checkout dev
129+
git merge main
130+
```
131+
110132
## Add
111133

112134
When we want to stage changes that will be included in the commit.

0 commit comments

Comments
 (0)
0