Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 651 Bytes

basic steps to handle git repositories.md

File metadata and controls

24 lines (20 loc) · 651 Bytes

Reminder of basic steps to handle git repositories

How I created this remote repository from my local repository on my labtop

echo "# assignments" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/jorditorresBCN/assignments.git
git push -u origin master

How I updated my local repository on my labtop from the remote repository (code updated directly at remote repository)

git pull origin master

How I updated my remote repository from my local repository on my labtop

git add README.md
git commit -m "second commit"
git push -u origin master