Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ACM Git Workshop

Avatar for Oscar Olazabal Oscar Olazabal
March 10, 2018
55

ACM Git Workshop

Avatar for Oscar Olazabal

Oscar Olazabal

March 10, 2018

Transcript

  1. (Optional, any text editor is ok) https://code.visualstudio.com/download Windows: https://git-scm.com/downloads Mac:

    Developer tools (Xcode) Linux: “git” package We will begin shortly… Create an account https://github.com/
  2. “ Version control is a system that records changes to

    a file or set of files over time so that you can recall specific versions later”
  3. Commands Description git init Initialize Git repository git status Display

    status of project git add <file name> Track most recent version of specified file git commit –m “commit message” Store staged changes in a new commit git log View commit history Basic Git commands
  4. Commands Description git checkout <hash> Temporarily visit specified commit. git

    reset --hard <hash> Visit specified commit. All commits that came after the specified commit are erased. Visiting older commits
  5. Commands Description git remote add <remote name> <url> Add remote

    to local repository git push <remote name> <branch> Update remote repository with local changes. git pull <remote name> <branch> Incorporate changes from remote repository into current branch. git clone <url> Create a copy of the target repository Remote commands