Git ~ Workflow
Andy Chen
Posted on June 14, 2021
-Fork and clone code repository (assignment)
git clone (url of clone taken from github repository)
-Make regular commits while conducting work
git add .
git rm --cached to unstage
git status .
git commit .
git checkout -- <file> discards changes to working directory. reverts the specified file to last commit state.
git log -
git history -
git remote - specify parent repo where you forked from
-Push your code (after each commit)
git commit .
-Create your final commit with the message "Assignment Complete"
git push origin master
-Submit your final code via a Pull request in GitHub
done on Github
pwd - print working directory (displays the path)
mkdir - make directory within
touch - access or "touch" a file - if DNE, file will be created
if does exist, timestamp of last access to the file will be updated
💖 💪 🙅 🚩
Andy Chen
Posted on June 14, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
watercooler Why does a reboot make your PC run SO much faster than running all the cleaning tools you can possibly imagine?
November 30, 2024