- Get source code
git clone https://kiennguyen@github.com/kiennguyen/exo-oauth.git
- Review difference or create patch
git status
git diff file_or_folder
git show commit_hash_id
git format-patch
git show c3c3ff1e4a5b4cc6043150d7b22ed575fa593439 > EXOGTN-244.patch
git show --raw
- Commit code
git commit -a -m ""
- Commit code and push onto remote server
git push origin 3.2.x:3.2.x
git push URL current_local_branch:remote_branch
- Find information
git log --grep=EXOGTN-244
git log --oneline
- Switch branch
git checkout branche_name (such as master)
- Create new branch at local from remote address:
git checkout -b local_name remote_address
Ex: git checkout -b 3.2.x origin/3.2.x
- Add new remote branch to support pull:
git remote add trongtt_remote https://kiennguyen@github.com/trongtt/exogtn.git
- Update code to a commit: svn up -r 112212
git reset --hard f5bde1576744b66c13d2bbb4ba337cef006124bf
No comments:
Post a Comment