1.2 - Basic workflow

git clone
git add
git status
git commit
git pull
git push
git log
git fetch
  • Implement Git’s clone, add, status, commit, pull, and push operations on the command line.
  • Explain where information is stored at each stage of that cycle.
Published

January 27, 2023

Why teach this?

Implement Git’s clone, add, status, commit, pull, and push operations on the command line. - Understanding what the commands are doing in relation to the different elements involved, is no trivial task. Further, this should be actively involved in the class activities. Building a basic but functional initial representation of Git system could be a major challenge of any Git course teaching the basic workflow.

Explain where information is stored at each stage of that cycle. (extracted from The Carpentries) - This involves explicitly defining all the compartments the students should recognize to be able to use Git effectively (ie. what is the staging area, the index, the repository and the working directory?)

Mental Model

Activities

References

Timbers, Tiffany, Trevor Campbell, and Melissa Lee. 2022. Data Science: A First Introduction. CRC Press.