Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2a152e3

Browse files
committed
📦 NEW: commands
1 parent 7fb90cf commit 2a152e3

File tree

1 file changed

+52
-8
lines changed

1 file changed

+52
-8
lines changed

‎readme.md

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ git init
2222

2323
## Commands
2424

25-
⚡️ **The repetitive commands that I (and everyone else) use regularly.**
25+
⚡️ The **repetitive** commands that I (and everyone else) use regularly.
2626

2727
```sh
2828

@@ -43,14 +43,14 @@ git push -u origin master
4343

4444
```
4545

46-
🎩 **Clone a repository in your computer.**
46+
🎩 **Clone** a repository in your computer.
4747

4848
```sh
4949
# clone a repo
5050
git clone [repo_url]
5151
```
5252

53-
🌲 **The git commands you need to know to work with branches.**
53+
🌲 The git commands you need to know to *work* with **branches**.
5454

5555
```sh
5656

@@ -63,20 +63,62 @@ git branch [branch_name]
6363
# checkout to the new branch
6464
git checkout [branch_name]
6565

66-
# OR
66+
# OR
6767

6868
# create AND checkout to the new branch
6969
git checkout -b [branch_name]
7070

7171
# pushing the new branch on GitHub
7272
git push origin [branch_name]
7373

74-
# delete a branch
74+
# delete a branch locally
7575
git branch -d [branch_name]
7676

77+
# delete a branch on GitHub
78+
git push origin -d [branch_name]
79+
80+
# pulling changes from some other branch
81+
git pull origin [branch_name]
82+
83+
# merge a branch with the current active branch
84+
git merge [branch_name]
85+
86+
# merge a branch to some defined branch
87+
git merge [source_branch] [target_branch]
88+
7789
```
7890

79-
🎯 **Keep your GitHub forked repo in sync with the original repository.**
91+
📚 **Stashing** your untracked changes — Stash saves all the *new untracked changes* and rewind your repo to the last commit.
92+
93+
```sh
94+
95+
# stash the untracked changes
96+
git stash
97+
98+
# pop an existing stack
99+
git stash apply stash@{stash_number}
100+
101+
# list all stashes
102+
git stash list
103+
104+
# delete all saved stashes
105+
git stash clear
106+
107+
```
108+
109+
🍒 **Pulling** all the new changes from the remote repository on GitHub
110+
111+
```sh
112+
113+
# pull changes from master branch
114+
git pull origin master
115+
116+
# pulling changes from some other branch
117+
git pull origin [branch_name]
118+
119+
```
120+
121+
🎯 Keep your GitHub forked repo in **sync** with the original repository.
80122

81123
```sh
82124

@@ -145,7 +187,9 @@ function gacp() {
145187

146188
```
147189

148-
💥 **Fetching changes from the original repo to your forked repo.**
190+
### 🚀 Usage
191+
192+
Fetching changes from the original repo to your forked repo.
149193

150194
```sh
151195

@@ -162,7 +206,7 @@ fetchremotemn
162206

163207
```
164208

165-
🎲 **Usage of the rest of the workflows.**
209+
Usage of the rest of the workflows.
166210

167211
```sh
168212

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /