Skip to content

Commit a8023a0

Browse files
committed
updated readme, added git tag script
1 parent 3fc2562 commit a8023a0

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

22_git_tag.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import subprocess
2+
import sys
3+
4+
5+
if len(sys.argv) == 3:
6+
tag = sys.argv[1]
7+
commit = sys.argv[2]
8+
command = 'git tag -a {0} {1} -m "{2}"'.format(tag, commit, tag)
9+
output = subprocess.check_output(command, shell=True).decode('utf-8')
10+
subprocess.call(command, shell=True)
11+
subprocess.call('git push --tags', shell=True)
12+
else:
13+
print 'usage: tag.py TAG_NAME COMMIT'
14+
sys.exit(1)

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
1. **17_rewrite_git_history.md**: Backdating/Rewriting Git history (use at your own risk)
2020
1. **18_zipper.py**: Zip contents of a directory, adding a timestamp to the filename
2121
1. **19_tsv-to-csv.py**: Convert TSV to CSV
22-
1. **20_restore_file_from_git.py**: Restore file from Git History
22+
1. **20_restore_file_from_git.py**: Restore file from Git History
23+
1. **21_twitter_bot.py**: Twitter Bot
24+
1. **22_git_tag.py**: Create Git Tag based on a commit

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy