Answers for "git first push"

0

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
Posted by: Guest on May-10-2021
3

git first push

# On server:
mkdir my_project.git
cd my_project.git
git --bare init
# On client:
mkdir my_project
cd my_project
touch .gitignore
git init
git add .
git commit -m "Initial commit"
git remote add origin [email protected]:/path/to/my_project.git
git push origin master
Posted by: Guest on September-18-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language