- install git on pc
- create shh-keygen on pc
- upload to github profile
- clone repos with shh method (allows pushes)
- open folder in vscode and save changes
git add .
git commit -m "Some description of update" //describe the changes
git push //add files to origingit push origin developgit push origin develop:maingit add my_folder
git add README.mdError sample:
! [rejected] main -> main (fetch first)
error: push di alcuni riferimenti su 'github.com:matteoamorth/git-test.git' non riuscitoTo force the commit:
git push --force origin mainTo remove file "file_tmp.txt" in "my_folder"
git rm ./my_folder/file_tmp.txtRemove all
git rm -r --cached .git pull
git pull --forceCheck changes:
git fetchgit branchCreate (forced)
git checkout -b developgit checkout "name"
git switch "name"create file .gitignore
#FOLDER
your_folder/
#File extensions to discard
*.asv
*.bak
*.rst