Monday, 17 September 2018

Git Commands

Download git
https://git-scm.com/

if you want to add your project to bitbucket or github. you can use the following commands

Step 1:

Right Click-> Git Bash Here or go to the Project folder if you are not using git GUI tools

Step 2:
Type git init (For initializing git).

Step 3:
Type git add -A (Get all files in the staging area).

Step 4:
Type git commit -m "First Commit"(Commit Changes)

Step 5:
Type git remote add origin https://..bitbucket.org/../ABC.git (Your repo URL)

Step 6:
Type git push -f origin master(your branch name)

No comments:

Post a Comment