Git start new project upload and delete branch

How to upload project

1) initialize git

git init

2) add repository branch

git remote add origin https://git.zerozone.com/ace-infoway/bhavesh-baku/qewpmigration.git

3) fetch all branch

git fetch --all

4) create new branch

git checkout -b anupratap

5) upload code by add .

git add .

6) commit you first project

git commit -m "upload project"

7) push all code

git push origin anupratap


How to delete

1) Checkout a different branch (not the branch you want to delete):

git checkout main 

2) Delete the local branch:

git branch -D anupratap

3) Delete the remote branch:

git push origin --delete anupratap


 

 

 

Post a Comment

Previous Post Next Post