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 047533c

Browse files
author
Saiful
committed
tag info
1 parent 30ee844 commit 047533c

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

‎README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ followed the easiest process.
6666
# Display all diff information when submitting.
6767
$ git commit -v
6868

69+
# update and replace the most recent commit with a new commit
70+
$ git commit --amend
71+
6972
### Commit changes (Workspace --> Staging --> Repository)
7073

7174
# Submit the changes of all tracked files after the last commit.
@@ -208,6 +211,7 @@ followed the easiest process.
208211
# All chnages will be discard.
209212
# Undo the last commit.
210213
$ git reset --hard HEAD~1
214+
211215

212216
### Revoke/Undo from Remote (Workspace <-- Staging <-- Repository <-- Remote)
213217

@@ -262,39 +266,39 @@ followed the easiest process.
262266
$ git tag
263267

264268
# Create a new tag in the current commit.
265-
$ git tag [tag]
269+
$ git tag [tag_name]
266270

267271
# Create a new tag in the specified commit.
268272
$ git tag [tag] [commit]
269273

270274
# Delete the local tag.
271-
$ git tag -d [tag]
275+
$ git tag -d [tag_name]
272276

273-
# Delete the remote tag.
274-
$ git push origin :refs/tags/[tagName]
277+
# Push the specified tag to remote.
278+
$ git push origin [tag_name]
275279

276-
# View the tag information.
277-
$ git show [tag]
280+
# Push all tags to remote.
281+
$ git push origin --tag
278282

279-
# Commit the specified tag.
280-
$ git push [remote] [tag]
283+
# Delete the remote tag.
284+
$ git push origin :refs/tags/[tag_name]
281285

282-
# Commit all tags.
283-
$ git push [remote] --tags
286+
# View the tag information.
287+
$ git show [tag_name]
284288

285289
# Create a new branch pointing to a certain tag
286290
$ git checkout -b [branch] [tag]
287291

292+
Notes:
293+
# When you want to create a release point for a stable version
294+
# Tag is nothing but a reference name of a commit
295+
# Multiple tag name is possible for same commit
288296

289-
### Others
297+
### cherry-pick
290298

291299
# Select a commit to be merged into the current branch.
292300
$ git cherry-pick [commit]
293301

294-
# Generate a archive for releasing.
295-
$ git archive
296-
297-
298302
### Checkout vs Reset vs Revert
299303

300304
* [Atlassian](https://www.atlassian.com/git/tutorials/resetting-checking-out-and-reverting)

0 commit comments

Comments
(0)

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