Showing posts with label git. Show all posts
Showing posts with label git. Show all posts
Tuesday, June 23, 2015
Update git 1.7 to most recent version 2.0.4 on centos 6 script
B.Sc. Student , Department of CSE , 9th Batch , Dhaka University of Engineering & Technology(DUET) , Gazipur - 1700 , Bangladesh.
Tuesday, October 21, 2014
Git : commit all changes in current directory tree and push to default repository from terminal
- #see current changes
- git satus
- #add changed things to local repo
- git add -A
- #commit all changes
- git commit -a
- #see remote repo
- git remote
- #send to remote repo
- git push
B.Sc. Student , Department of CSE , 9th Batch , Dhaka University of Engineering & Technology(DUET) , Gazipur - 1700 , Bangladesh.
Thursday, September 18, 2014
Create new repostory at github and add new directory with files from terminal
Just use this script : committogithub.sh
Or Download it (commitnewfilestogithub.sh)
Usage :
Note : Make sure you have setup your ssh correctly for the system you are using at https://github.com/settings/ssh
- curl -u $1 https://api.github.com/user/repos -d "{\"name\":\"$2\"}"
- git init
- git add .
- git commit -a -m "added all"
- git remote rm origin
- git remote add origin "ssh://git@github.com/$1/$2.git"
- git remote -v
- git push -u origin master
Or Download it (commitnewfilestogithub.sh)
Usage :
- sh committogithub.sh username reponame
Note : Make sure you have setup your ssh correctly for the system you are using at https://github.com/settings/ssh
Labels:
bash,
git,
github,
github API,
linux
B.Sc. Student , Department of CSE , 9th Batch , Dhaka University of Engineering & Technology(DUET) , Gazipur - 1700 , Bangladesh.
Subscribe to:
Posts (Atom)