These are the most common GIT commands
- Create an empty repository
git init
- Staging your changes
git add
- If you are your root directory , I mean myapplication/ you can use the paramter -A to stage all changes in one execution.
git add -A
- Putting you changes in your local repo
git commit
git commit
- If you want to add a message in your commit you can use the parameter -m
git commit -m "login fixed"
- Switching between branches
git checkout develop
- Creating a new branch
git checkout -b MyNewBranch
- Adding new remote
git remote add origin https://github.com/plataformatec/devise.git
- Saving your changes to the remote repo
git push origin develop
- Pull down new changes
git pull origin develop
No comments:
Post a Comment