Version Control Training

Hands-on practice repository for learning Git and collaboration through pull requests.

  1. Clone this repo on your local machine

    git clone https://github.com/Training-Dummy/git-training.git
  2. Create a new branch with your first and last name

    git checkout -b <first name>_<last name>
    • For example:
      git checkout -b first_last
  3. Create a new text file named [current semester]/[last name]/[first name].txt

    • In the text file, write your name, email, and GitHub.com username
    • Example:
      2024FALL/last/first.txt
  4. Commit your changes

    git add .
    git commit -m "a useful message"
  5. Push your changes to GitHub

    git push origin <branch name>
    • For example:
      git push origin first_last
    • Or simply:
      git push



  1. Submit a pull request

    • Navigate to GitHub and under the “Pull requests” tab, select your branch to merge into main.
  2. Add 2 of your neighbors as reviewers.

  3. Wait for a review. Review your neighbor’s pull request.

  4. Upon approval, Squash and Merge changes.


Gitkraken Git GUI

GitKraken

https://www.gitkraken.com/ picture 1
GitKraken is a graphical user interface (GUI) tool for managing Git repositories. It is designed to simplify the process of version control and collaboration for developers

Install GitKraken Desktop

Set up GitKraken

Connect your repo to better visualize and work with your code

  • Click Clone a Repo (CTRL + N) and copy and paste repo URL https://github.com/Training-Dummy/git-training.git
    • Specify directory/path to save the folder

picture 2

  • Create a branch
    • Click the Branch icon and type your_name in the input box

picture 3

  • Create a folder with LAST_NAME and inside that folder create a text file FIRST_NAME.txt

picture 4

  • Commit changes

picture 5

  • Push to GitHub

picture 6

  • Create a Pull Request

picture 8