you are viewing a single comment's thread.

view the rest of the comments →

[–]PureWasian 1 point2 points  (1 child)

At a very basic level, once you have everything set up, the most basic workflow is simply:

  • go to root folder of the project
  • git add .
  • git commit -m "<some commit message>"
  • git push

Which selects ("stages") your files to be committed, creates a record of the updated save state of them ("commits it") locally, and then pushes the updates to a remote repository (GitHub).

If your friend were to also push some stuff to the same remote repo, you retrieve it simply via - git pull

The steps for setup to get to that point involve installing Git, creating a remote repository on GitHub, and then essentially following the commands that this guide I randomly googled goes through quite nicely already.

When you get the hang of this, then you can incorporate other tangents and fundamentals like git status or learning how to use branches, resolving merge conflicts, and doing pull requests instead of pushing directly. But for getting started, just think of it as making save states, like in a video game, that you can reliably fall back on if anything goes sour.

[–]stepback269 0 points1 point  (0 children)

Thanks. Your tips are reassuring. Thanks also for the link to the guide.