Thursday, 31 March 2016

GIT Flow Steps

  1. Create GIT Account
  2. Install GIT [https://git-scm.com/download/win]
  3. Open GIT Bash
  4. Check GIT Version [git --version]
  5. Generate ssh key [ssh-keygen -t rsa -C "OUR-EMAIL_ID"]
  6. Move to .ssh directory in command line [cd C:\users\YOUR_NAME\.ssh]
  7. Copy Public key to Clipboard [clip < ida_rsa.pub>]
  8. Configure Public Key in GIT Account [https://github.com/settings/keys]
  9. Clone GIT Repository: [git clone <YOUR_REPOSITORY_URL>]
  10. Move to your project folder [cd "MYPROJECT_FOLDER" - This is Repository Name]
  11. Check Existing Branches [git branch]
  12. Checkout to Master / Respective branch [git checkout master]
  13. Check Branch Status to Pull / Rebase updates [git status]
  14. Pull updates fron Branch [git pull origin master] - Here master is a branch name.
  15. Create a Feature [git flow feature start "YOUR_FEATURE_NAME"] - Generally features will be used to accomplish a small tasks. If git flow feature start forces an error, please execute "git flow init" first
  16. Publish Feature Branch into GIT [git flow feature publish "YOUR_FEATURE_NAME"]
  17. Make all necessary file changes or creation or deletions as per your task.
  18. Before commiting your changes, pull if any updtaes available.
  19. Add your updated files to GIT [git add "CREATED_OR_UPDATED_FILE"]
  20. Commit added files into GIT [git commit -v] - Provide test and save changes and commit.
  21. Then push your branch changes [git push origin "YOUR_FEATURE_NAME"]
  22. Then Pull Request in GIT.
  23. Merge Branch Changes into Master. 
  24. Check out to Master branch and delete all unnecessary local Branches. [git branch -d "YOUR_FEATURE_NAME"]

No comments:

Post a Comment

Thank you so much for providing your valuable feedback. I will will look into them and update my skills & technologies accordingly.