Learning Git
-
@ramblingbiped said in Learning Git:
@scottalanmiller said in Learning Git:
@ramblingbiped said in Learning Git:
Atlassian's Bitbucket is another free repository.
Not free like GitLab. GL is free repos, free users.
Yes, I understand that. Free like github.
LOL, which is why I mention GitLab. Really free
-
What I don't understand is how to get my workstation setup so I can commit to a repo.
-
@aaronstuder said in Learning Git:
What I don't understand is how to get my workstation setup so I can commit to a repo.
Make your SSH key, make a copy of your public key (clipboard) and paste it into your profile settings.
-
@scottalanmiller I get that, where do I store the repo files on my local workstation? Anywhere?
-
@aaronstuder said in Learning Git:
@scottalanmiller I get that, where do I store the repo files on my local workstation? Anywhere?
Sure. I use /home/scott/code and then make my repos in there. Use git clone to create the initial files to make it simple.
-
@scottalanmiller so Git clone basicly makes a local copy of the repo on my local computer then I can add and commit from there?
-
@aaronstuder said in Learning Git:
@scottalanmiller so Git clone basicly makes a local copy of the repo on my local computer then I can add and commit from there?
Other way, use git clone to pull your repo from your host. Make the repo on the host, then git clone on your workstation to bring a copy down (even if it is empty.)
-
@scottalanmiller worded badly via mobile. So I can use any directory I want? Thatโs pretty cool
-
@aaronstuder said in Learning Git:
@scottalanmiller worded badly via mobile. So I can use any directory I want? Thatโs pretty cool
Think of it like NextCloud.... it'll sync any folder that you want.
-
@scottalanmiller so what stops you from using this for file storage? Do they block certain extensions? Files over a certain size?
-
@aaronstuder said in Learning Git:
@scottalanmiller so what stops you from using this for file storage? Do they block certain extensions? Files over a certain size?
It's just not practical for it. It's a text processing system. I think you'd find it pretty painful to use for anything else.
-
There's also a GitHub Desktop application you can use to connect to / manage / pull down code from GitHub.
-
@networknerd said in Learning Git:
There's also a GitHub Desktop application you can use to connect to / manage / pull down code from GitHub.
Any value to that, though? Basically all you really want to do is...
git add .; git commit -m "My note"; git push origin
That's it. A desktop app would just be in the way.
-
Put in another vote here for gitlab.
-
@aaronstuder said in Learning Git:
What the best resources to learn Git?
Also, I am assuming GitHub to the best repository to use?
Thank you for making the thread I've been meaning to make for a while but never got around to doing it.
-
I use VS Code with GitLab.
-
-
I use Gitlab because of the built in runners. It's nice to have the CI/CD pipeline built directly in.
Jenkins and others obviously work with Github but being able to have a local system do the testing (that's automatically kicked off) while using the hosted Gitlab is pretty awesome.
I also use VS code and Atom (with the Git Plus package).
-
Free Plan Comparison
-
@tim_g said in Learning Git:
I use VS Code with GitLab.
I need to install VS code. on my desktop. been hearing you two complement it.