Git add existing solution to Bitbucket / GitHub via command line
git init
git add .
git commit –m "Initial commit"
git remote add origin [URL]
git remote –v
git push --set-upstream origin master (Skal ændres snarest)
Git - Rename master branch to main
- git branch -m master main
- git push -u origin main
- git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main (Point head to main)
- IN Bitbucket UI (Repository > Administration > Repository Details > Main branch) / GitHub - Set default branch to Main
- git branch -a
- git push origin --delete master