Git Workflow
dvbportal edited this page Dec 29, 2010
·
3 revisions
Download and install Git
git config --global user.name "Your Name"
git config --global user.email dvbportal@gmail.com
mkdir appjet
cd appjet
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:dvbportal/appjet.git
git push origin master
cd existing_git_repo
git remote add origin git@github.com:dvbportal/appjet.git
git push origin master
Edit and test the files on your development machine. When you’ve got something the way you want and established that it works, commit the changes to your branch on your development server’s git repo.
$ git add <filename>
$ git commit -a -m 'Commit message'
$ git tag -a v1.0.3 -m "Tag message"
To push changes:
$ git push origin master
To push a tag or more tags
$ git push --tags
For full details see the Git Manual Pages.