What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-09 21:04:03
how to push in git for the first time
echo "# my-pfe-informatique-mobile" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/TaherSaid/my-pfe-informatique-mobile.git git push -u origin main Add solution -
Shell/Bash 2021-09-09 11:03:04
add upstream branch git
git branch --set-upstream-to <remote-branch> // example git branch --set-upstream-to origin feature-branch // show up which remote branch a local branch is tracking git branch -vv // short version to set upstream with very first push git push -u ... Add solution -
Shell/Bash 2021-09-01 10:01:02
add github repo
# New local repository git init git add . git commit -m "Initial commit" # New remote repository # Create remote repository (likely on github), then: git remote add origin https://github.com/username/new_repo #https git remote add origin git@gi... Add solution -
Shell/Bash 2021-08-31 16:14:02
github allow large files
# install git lfs git lfs install # track file types git lfs track '*.nc' git lfs track '*.csv' # add and commit git add . git commit -m "<commit-message>" # push git lfs push --all origin master git push -u origin master Add solution