Step 2 Start Git

Git Workflow – Step by Step


Step 1: Create Repository

  • Create repository from website (GitHub / Bitbucket / GitLab)

Step 2: Git Clone

git clone git@bitbucket.org:darmist/my-project.git

Step 3: Create New Branch

git checkout -b ranadepto
git branch

Step 4: Add All Files to Git

git add .
git status

Step 5: Setting Git Message

git commit -m "Adding all new files for the first time"

Step 6: Upload All Files to the Remote Repository

git push origin ranadepto

Step 7: Pull Request Using Command

git branch
git checkout master
git merge ranadepto
git push origin master

Step 7 (Alternative): Pull Request Using Web GUI

  • Create Pull Request
  • Approve
  • Merge