Search This Blog

Sunday, November 13

Some Sample Git Commands for beginners

If using bit bucket, it takes certain steps for granted and as such can give you lot of pain. But here is how I fixed this issue. In your root directory of your project
    git init
    git add .
    git commit -m "message"
Then follow the steps from the initial page of the repo
    git remote add origin https://xxxx@bitbucket.org/xxx/xxx.git
    git push -u origin --all
    git push -u origin --tags
Hope I've helped someone!

No comments:

Post a Comment