You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,20 +103,20 @@ Though there are 1000’s of articles about git, I have written this article is
103
103
$ git fetch --all
104
104
105
105
106
-
10.### Workspace synchronization from Repository (Workspace <-- Repository)
106
+
10.### Workspace synchronization from Repository (Workspace <-- Repository)
107
107
108
108
# merge the specified branch to the current branch.
109
109
$ git merge [branch]
110
110
111
111
# merge a branch into a target branch
112
112
$ git merge [source branch] [target branch]
113
113
114
-
11.### Workspace synchronization from remote (Workspace <-- Repository <-- Remote)
114
+
11.### Workspace synchronization from remote (Workspace <-- Repository <-- Remote)
115
115
116
116
# Retrieve the changes to the Remote Repository and merge with the local branch (fetch+merge)
117
117
$ git pull origin [branch]
118
118
119
-
12.### Branching
119
+
12.### Branching
120
120
121
121
# List all local branches. (the asterisk denotes the current branch)
122
122
$ git branch
@@ -146,7 +146,7 @@ Though there are 1000’s of articles about git, I have written this article is
146
146
$ git push origin --delete [branch-name]
147
147
$ git branch -dr [remote/branch]
148
148
149
-
13.### View Information
149
+
13.### View Information
150
150
151
151
# Display the changed files.
152
152
$ git status
@@ -163,7 +163,7 @@ Though there are 1000’s of articles about git, I have written this article is
163
163
# Show the latest commits of the current branch.
164
164
$ git reflog
165
165
166
-
13.### Ignore files and folder
166
+
13.### Ignore files and folder
167
167
168
168
# Delete the files in the Workspace and put this deletion into the Staging.
169
169
$ git rm [file1] [file2] ...
@@ -172,7 +172,7 @@ Though there are 1000’s of articles about git, I have written this article is
172
172
# Stop tracking the specified file, but the file will be remained in the Workspace.
173
173
$ git rm --cached [file]
174
174
175
-
14.### Tag
175
+
14.### Tag
176
176
177
177
# List all tags.
178
178
$ git tag
@@ -249,9 +249,9 @@ Though there are 1000’s of articles about git, I have written this article is
249
249
250
250
I have followed many articles but among them, the following articles are really helpful. Those articles helped me a lot and also encourage me to write this article according to my understanding.
0 commit comments