git

Back Open Paginator
18.01.2025 05:26
notes (@notes@social.mikala.one)

Oh Shit, Git!?!

Link
📌 Summary: 在使用 Git 時,即使一個小錯誤也可能造成困擾,解決問題往往需要深入瞭解。本文整理了幾個常見的錯誤操作及其解決方法,包括如何利用 git reflog 回到先前狀態、修改最近的提交、變更提交訊息、從錯誤分支回到正確分支等。這些技巧若能熟練運用,能有效減少在版本控制過程中的挫折感。

🎯 Key Points:
- 使用 git reflog 恢復到先前狀態,無論是找回誤刪檔案或修復錯誤合併。
- 可以利用 git commit --amend 快速修改最後的提交,但注意不應該修改已推送的提交。
- 若誤將提交放在錯誤分支,可透過 git reset 和 git stash 將變更轉移到正確分支上。
- 回溯早前的提交可使用 git revert,這樣不需手動復原檔案內容。
- 當整個 repo 混亂時,可以透過 git fetch、git reset 和 git clean 重置至遠端狀態,注意這是無法恢復的行為。

🔖 Keywords: #Git #版本控制 #錯誤處理 #提交修正 #分支管理




Show Original Post


17.01.2025 19:18
davidrmiller (@davidrmiller@noc.social)

A nice compendium of git commands for every occasion.
#git
github.com/k88hudson/git-fligh




Show Original Post


17.01.2025 17:35
clonbg (@clonbg@masto.es)

Los comandos que necesito para trabajar con git desde la terminal myblog.clonbg.es/los-comandos- #Terminal #Git clonbg.es





Show Original Post


17.01.2025 14:47
benjamin_segfaulted_again (@benjamin_segfaulted_again@hachyderm.io)

`alias g=git` might save me millions of key presses over my lifetime. (20 years, ~50 git commands per day). I've got others, too:

g s = git status
g a = git add
g c = git commit
g b = git branch

Millions, I say!!! #git




Show Original Post


17.01.2025 14:39
Xanatos (@Xanatos@mastodon.gamedev.place)

Just got my mind blown, as you might have read I started to use conventional git commits, trying to bundle my commits in a good fashion way with valuable commit messages.

As I created a merge request today I just noticed how much easier reviewing will be as you can click on commits made on this review and only see changes related to example a refactor or an feature.

#Git #GitUsage #LearningGit #VersionControlSystem #Developer #Coding




Show Original Post


17.01.2025 13:15
richtong (@richtong@mastodon.social)

dev: Getting rid of Git LFS
This thing is a bit of a pain, it is very expensive on Github although they've lowered the price artificially, it is $5 for 50GB of Git LFS storage. As long as you keep your files less than 100MB you shouldn't have a problem, but how do you get rid of it once you have it. That's actually very hard

Removing Git LFS

There is a very specific sequence you need to run. Thanks to Ryan I think
tongfamily.com/2025/01/17/dev-





Show Original Post


17.01.2025 12:58
qiita (@qiita@rss-mstdn.studiofreesia.com)

Git Sync・Pull Request自動コメント機能についての感想
qiita.com/am_i-12/items/fc2b96

#qiita #Git #AWS #GitSync




Show Original Post


17.01.2025 12:58
qiita (@qiita@rss-mstdn.studiofreesia.com)

GitでLaTeXの文書のバージョン管理する+latexdiff-vcで差分を出す
qiita.com/ishigaki/items/6eaec

#qiita #LaTeX #Git




Show Original Post


17.01.2025 12:32
escolalinux (@escolalinux@mastodon.social)

🔍 Desmistificando o Debate Git vs. GitHub: Entendendo as Principais Diferenças 🖥️🔗

Git e GitHub são frequentemente confundidos, mas possuem funções distintas no mundo do desenvolvimento. Descubra as diferenças essenciais entre eles e como cada um pode beneficiar seus projetos!

👉 Saiba mais no blog: nova.escolalinux.com.br/blog/d




Show Original Post


17.01.2025 11:01
david_guillot (@david_guillot@social.tchncs.de)

🤓 🔐 Every time I get a new e-mail address I'll use for committing into a #Git repo, which is not very often, I just type "florimond.dev" in Firefox to get quick access to this awesome straight-to-the-point post about #gpg commit signing: florimond.dev/en/posts/2022/07.

Thanks @florimond for that, it will remain a reference for years!




Show Original Post


17.01.2025 08:49
folken (@folken@chaos.social)

@paulsanders yeah suddenly that #proxmox cluster with #ceph and #zfs running #selfhosted #kubernetes for running stuff such as #nextcloud #matrix #dex of course all managed with #devops principles #git ified in #forgejo with #argocd and all managed by #saltstack seems completly justified.




Show Original Post


17.01.2025 08:16
pietro395 (@pietro395@mastodon.uno)

ohshitgit.com/

#git #developers




Show Original Post


1 2 3 4 5 6 7 8 9 10 11 ...143
UP