-
Notifications
You must be signed in to change notification settings - Fork 1
git setup
nikosT edited this page Mar 23, 2011
·
6 revisions
Global setup:
- Download and install Git
- git config --global user.name "christos koninis"
- git config --global user.email [email protected]
Next steps:
- mkdir cbox
- cd cbox
- git init
- touch README
- git add README
- git commit -m 'first commit'
- git status -s // see what you 've changed (locally)
- git remote add origin [email protected]:CEID-DS/cbox.git
- git push -u origin master
Existing Git Repo?
- cd existing_git_repo
- git remote add origin [email protected]:CEID-DS/cbox.git
- git push -u origin master
- git clone [email protected]:CEID-DS/cbox.git // download the whole project
- git log // shows commits' history
- git reset --hard <commit's hash> // rollback to specific commit