Sadržaj
##git config git config --global user.name "Marijan Kopčić" git config --global user.email mkopcic@gmail.com
#rename git to https git git config --global url."https://".insteadOf git://
##add files to git remote
git init // hint: git config --global init.defaultBranch
git commit -m "first commit" git branch -M main git remote add origin https://github.com/mkopcic/central.mellon-fitness.com.git git push -u origin main
##git remove origin git remove origin git remote remove origin
##Pull and push local changes: git pull origin master From https://github.com/mkopcic/razvoj.mellon-fitness.com
- branch master -> FETCH_HEAD hint: You have divergent branches and need to specify how to reconcile them. hint: You can do so by running one of the following commands sometime before hint: your next pull: hint: hint: git config pull.rebase false # merge hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You can replace "git config" with "git config --global" to set a default hint: preference for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. git pull origin master
#Fetch git init git remote add origin [my-repo] git fetch git checkout origin/master -ft
##Repositories:
-Razvoj https://github.com/mkopcic/razvoj.mellon-fitness.com https://github.com/mkopcic/razvoj.mellon-fitness.com.git
- Central Fitness https://github.com/mkopcic/central.mellon-fitness.com https://github.com/mkopcic/central.mellon-fitness.com.git