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 ecd56c6

Browse files
author
Saiful
committed
readme update
1 parent cf51339 commit ecd56c6

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

‎README.md‎

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
git config --global user.name
2626
git config --global user.email
2727

28-
3. ### Mange Repository
28+
3. ### Manage Repository
2929

3030
Pocess 1: Create a Repository in git hub/git lab then Clone the Repository
3131

@@ -46,7 +46,7 @@
4646
4. ### Adding files and folder (Workspace --> Staging)
4747

4848
# Add the specified file from the current directory to the staging.
49-
$ git add [file1] [file2] ...
49+
$ git add [file1] [file2] [fileN]
5050

5151
# Add the specified directory from the current directory to the staging, including subdirectories.
5252
$ git add [dir]
@@ -81,9 +81,15 @@
8181

8282
7. ### Commit changes (Workspace <-- Staging <-- Repository )
8383

84-
# Redo the last commit.
84+
# Undo the last commit.
8585
$ git reset HEAD~1
8686

87+
8. ### Remote synchronization from Repository(Repository <-- Remotr)
88+
89+
# Undo the last commit.
90+
$ git reset HEAD~1
91+
92+
8793
8. ### Repository synchronization from remote (Repository <-- Remote)
8894

8995
# Download specific branch.
@@ -92,7 +98,17 @@
9298
# Download all remote branches.
9399
$ git fetch --all
94100

95-
8. ### Workspace synchronization from remote (Workspace <-- Repository <-- Remote)
101+
102+
9. ### Workspace synchronization from Repository (Workspace <-- Repository)
103+
104+
# merge the specified branch to the current branch.
105+
$ git merge [branch]
106+
107+
# merge a branch into a target branch
108+
$ git merge [source branch] [target branch]
109+
110+
111+
10. ### Workspace synchronization from remote (Workspace <-- Repository <-- Remote)
96112

97113
# Retrieve the changes to the Remote Repository and merge with the local branch.
98114
$ git pull origin [branch]
@@ -103,6 +119,7 @@
103119
# Push all the branches to the Remote Repository.
104120
$ git push origin --all
105121

122+
106123
6. ### Remote branch synchronization from local
107124

108125
# Push the local specified branch to the Remote Repository.
@@ -141,17 +158,6 @@
141158
# Delete the remote branch.
142159
$ git push origin --delete [branch-name]
143160
$ git branch -dr [remote/branch]
144-
145-
6. ### Merging
146-
147-
# merge the specified branch to the current branch.
148-
$ git merge [branch]
149-
150-
# merge a branch into a target branch
151-
$ git merge [source branch] [target branch]
152-
153-
# Select a commit to be merged into the current branch.
154-
$ git cherry-pick [commit]
155161

156162

157163
5. ### Ignore files and folder
@@ -298,6 +304,9 @@
298304
# Generate a archive for releasing.
299305
$ git archive
300306

307+
# Select a commit to be merged into the current branch.
308+
$ git cherry-pick [commit]
309+
301310
9. ### References
302311

303312
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

Comments
(0)

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