this post was submitted on 31 May 2026
9 points (68.0% liked)

Ask Lemmy

39797 readers
954 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, toxicity and dog-whistling are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 3 years ago
MODERATORS
 
top 11 comments
sorted by: hot top controversial new old
[–] Bluetreefrog@lemmy.world 0 points 23 hours ago

Rule 5. Locking.

[–] muzzle@lemmy.zip 23 points 1 day ago (1 children)

That's nice :)))

[–] Zwuzelmaus@feddit.org 14 points 1 day ago* (last edited 1 day ago) (1 children)

It is wrong. Git does not need a central system (although most people define one as the central). The local system has a repository, too.

Commits go into the local repository, not outside.

Push goes from the local repository (not from a commit that's hanging in the air) to a remote repository (most times to the "central" one).

There are pretty good tutorials on youtube. Just be sure to learn git itself first, and then all the website things like github etc.

[–] 30p87@feddit.org 3 points 1 day ago

Though you can also have multiple remotes each containing a subset or superset of your current branches and commits. Which is fun.

[–] BladeFederation@piefed.social 7 points 1 day ago (1 children)
[–] tdawg@lemmy.world 4 points 1 day ago* (last edited 1 day ago) (1 children)

Basic workflow that got me through the learning pains.

If I just sat down:

  • git checkout develop or whatever ur main branch is
  • git pull origin

If I'm working on a new branch:

(If not already on the new branch)

  • git branch -b feature/123-ticket-name

(After making some changes)

  • git add .
  • git commit
  • git push

Git will prompt you the first time you git push, just follow the instructions.

And of course there's tons more you could learn or dive into. But that should give you a stable foundation to start working from

[–] NocturnalMorning@lemmy.world 2 points 1 day ago

You'd be surprised how many people use git without knowing even the basics.

I've had a surpising amount of coworkers who have come to me for an issue that I literally googled for them to just give them the answer.

[–] jlow@slrpnk.net 2 points 1 day ago

I've tried learning git a few times and new a bit about it but this article helped me understanding it quite a bit better:

https://www.chrismccole.com/blog/git-for-artists

The practical bits are about Github which you obviously don't want to use but you can still get the gist of it when using Codeberg or something similar.

[–] slazer2au@lemmy.world 2 points 1 day ago

There are many many many many many git tutorials online. You literally need to stick the question into a search engine or watch a YouTube video.