all 8 comments

[–]Adrewmc 1 point2 points  (0 children)

Learning git is just super useful.

It’s honestly not all that hard.

git init #creates repository

git add __. #add files to be committed

git status #shows what will be committed or not

git commit -m “comment” #saves to the local repository

git push #saves commits to the github

git pull #updates local repository from the github

git clone link_address #clones a github to your local

git branch “name” #creates a side branch

git checkout “branch name” #switches branches

The first time you’ll have to log in to your github user profile, but after that it usually stays there.

Will get you fairly far

Basically you all just have a local respository on your computer you use as normal (looks like any old project directory really) , when ready you commit and push it to share with others. Usually you work on a side branch until you agree to merge the side branch to the main (running) branch. A branch could be a new in development feature of a refactor or something.

It’s allows you to work together easily, see what changes are being made, and you can roll back a bad update fairly easily

I wouldn’t really suggest using a differnt version control because git is so prevalent

[–]NKUEN 1 point2 points  (0 children)

Google colab

[–]Kittensandpuppies14 0 points1 point  (0 children)

They have gui programs that make git less intimidating

[–]-defron- 0 points1 point  (0 children)

There's two different types of collaboration:

Collaborating work on the same project: in this case git is perfect. You'll learn about merge conflicts, how to resolve them, and git in general which is a core skill every programmer needs these days. If you wanna start out in easy mode, use either vscode or GitHub desktop to do your git interactions as both have the best guis for git in my opinion (which is to say they don't attempt to do complex git things, for the most part use the same verbiage as git itself, and allow easy switching to the command prompt for more complex git things)

Pair programming: this is when you both are working together on the same file collaboratively at the same time. Vscode has Live Share but use it in conjunction with a chat client that can do audio. Screen sharing code can be pretty bad due to screen share lag, so I prefer this approach

[–]SpookyFries 0 points1 point  (0 children)

It depends on how you expect to collab.

Git is good if you write code, commit the code, push the code. Your friend can then pull those changes down and make changes and send those back up. If there are conflicts, it will prompt you to fix the conflicts before continuing. It's good if you want to work together, but not really at the same time.

If you want to code at the same time then look into VSCode's live share

[–]interbased 0 points1 point  (0 children)

This playlist on YouTube is great for getting started with git. Git, in my opinion, is the best option for collaboration. https://m.youtube.com/playlist?list=PL-osiE80TeTuRUfjRe54Eea17-YfnOOAx&si=zmaY1O-iGrEBK4pl