Git

3218 readers
6 users here now

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 2 years ago
MODERATORS
1
24
Git stories (self.git)
submitted 9 months ago by canpolat to c/git
2
4
submitted 2 days ago* (last edited 2 days ago) by [email protected] to c/git
 
 

Hi, folks! I'm trying to send commits from origin to another branch:

git push -uf origin foo2

Then I gets it:

branch 'foo' set up to track 'origin/foo2'.

But when I'm trying to do this:

git push -uf origin origin/foo2

It writes me:

Everything up-to-date

And commits don't be sent.

Now I'm using 'foo' branch.

And the list of changes:

changed: scripts/file1.gd

changed: scripts/file2.gd

changed: scripts/file3.gd

Is still not empty. After I sends commits - nothing changes.

I don't know what do I do wrong. Can you help me? 🤷🏻‍♂️

3
11
submitted 2 weeks ago by canpolat to c/git
4
5
6
7
8
9
submitted 1 month ago by canpolat to c/git
9
31
I found commit 0 (github.com)
submitted 1 month ago* (last edited 1 month ago) by Kissaki to c/git
 
 

What are the chances of the parent also beginning with seven zeroes?

I suspected author or commit date manipulation. But the commits look entirely like normal commits. So it must be pure chance?

  • 00000003dd63b4c5af111a31269ed8a18d0823fa
  • 0000000ae6a4e242e802c943f465373b70b07469
10
11
16
submitted 1 month ago* (last edited 1 month ago) by Kissaki to c/git
 
 

Headlines:

  • Faster packing with name-hash v2
  • Backfill historical blobs in partial clones

Followed by some more technical notes.

12
 
 

Hi there, we are a small tram of social researchers working on writing a collective report together. The report has several chapters. Our plan is to use git to store changes and easily traceback to different versions as well as allowing everyone to experiment with new ideas.

I am trying to decide a branching strategy, and so far I guess something like feature branching could do. We could have a branch for each chapter..? And maybe, when a chapter is kind ready, we could merge into main..?

We will have members working potentially on different parts of the report in different moments.

Advice is needed. Thank you!

13
20
How to Write Useful Commit Messages (refactoringenglish.com)
submitted 1 month ago by lysdexic to c/git
14
15
111
submitted 1 month ago* (last edited 3 weeks ago) by [email protected] to c/git
 
 

I was trying to learn git and after searching a bit, I finally found some good open-source tutorials. Specifically, I followed those two tutorials, in this order:

  1. https://ohmygit.org/ (a computer application)
  2. https://learngitbranching.js.org/ (a website)

The second seems to cover a bit more advanced topics (it teaches more thoroughly about remote repositories)


Also after an alternativeto search and a post here, I found three more open-source resources:

  1. https://www.gitmastery.me/ (a modern website)
  2. https://github.com/vishal2376/git-coach (an android application covering the very very basics)
  3. https://github.com/jlord/git-it-electron (An old computer application)

PS. Prior to these I had a basic git course, which I think wasn't enough, but probably helped me either way and after this I had checked some git resources, which gave more of a rounded knowledge about git and I think are worth metnioning:

  1. https://jdsalaro.com/tutorial/git/index.html (this person is here on lemmy too)
  2. https://tom.preston-werner.com/2009/05/19/the-git-parable.html
  3. https://missing.csail.mit.edu/
  4. https://docs.codeberg.org/git/clone-commit-via-cli/
  5. https://github.com/SimonSchubert/LinuxCommandLibrary

Lastly, there's the pro git book as well for anyone who wants to go even deeper: https://git-scm.com/book/en/v2

16
17
56
submitted 2 months ago by canpolat to c/git
18
 
 

Thank you for git - a lovely version control system https://git-scm.com

#ilovefsday #ilovefs @git @fsfe @torvalds

19
19
submitted 2 months ago by canpolat to c/git
20
21
22
 
 

Hey! I've just released todo-md v1 🚀. Keep your tasks organized with todo-md!

The pre-commit hook automatically maintains a TODO.md file by scanning your staged files for TODO: comments. You do not need complicated task trackers bloated with features anymore:) Let your code speak for itself!

Get it now: https://codeberg.org/lig/todo-md

#TODOmd #DevTools #PreCommit #Automation #OpenSource #Git #Todo​

23
24
25
view more: next ›