Answers for "way to make commit on git"

3

git initial commit steps

# 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
0

new commit

echo "# nushtribe-frontend" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/mazeeer/nushtribe-frontend.git
git push -u origin main
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language