existing source folder force set-upstream from local repository to bitbucket repository
git remote add origin https://user@bitbucket.org/maths-team/maths-repo.git
git remote -v
git fetch origin
#force remove all commits and init first commit
touch initial
#stagin the changes
git add .gitignore or .vscode
git commit -m "chagnes"
git push -u origin master
git push --force --set-upstream origin master
No comments:
Post a Comment