Git Initialization in a Existing Project

Goto to Project directory through the command:  cd drag&drop/your/project/folder/here
Initialize git: git init
Make staging: git add .
Commit : git commit -m "your message"

Create a repository on Bitbucket and then connect the repository with your local project –

git remote add origin https://shamimmia@bitbucket.org/shamimmia/myprojcet.git

git push -u origin master

Check your repository source code on Bitbucket, your project code should be available there.
Done for the first time.

# Git Tag: If you want to add a version tag to the last commit, follow the command below –

git tag v1.0(your version)

git push origin v1.5

 

Git tag delete –

git push --delete origin tagName

git tag -d tagName

 

Git tag list –

git tag -l

 

Thank you 😉