-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcommit.py
More file actions
12 lines (12 loc) · 481 Bytes
/
Copy pathcommit.py
File metadata and controls
12 lines (12 loc) · 481 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
import git
repo = git.Repo( '/home/mehtap/githubGUI4linux/github4linux/' )
print repo.git.status()
# checkout and track a remote branch
#print repo.git.checkout( 'origin/master', b='master' )
# add a file
#print repo.git.add('/home/mehtap/githubGUI4linux/github4linux/deneme5.py')
# commit
#print repo.git.commit( m='python kodu ile commit gonderildi5' )
# now we are one commit ahead
#print repo.git.status()
repo.git.push('https://github.com/COMU/githubGUI4linux.git','master',)