Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer night - @803.61
Activity rating: Four Stars Posts & Arts: 76/1k.beats Random | Recent Posts | Guild Recents
News: :4u: ~~~~~~~~~~~  :4u: Guild Events: There are no events!

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  Git and Version Control


« previous next »
Pages: [1] Print Embed
Author Topic: Git and Version Control  (Read 649 times)
noahie
Jr. Member ⚓︎
**
View Profile WWW


Writer
⛺︎ My Room
XMPP: Chat!
RSS: RSS

Guild Memberships:
Artifacts:
Joined 2025!
« on: a Winter night » Embed


Hi all,

If you don't have version control for your site with git, get it going as soon as you possibly can.

I had an issue where I lost one of my template files that I use for my static site generator (zola) and I had no way of recovering it. So please, wherever you have your site, make sure you implement version control with git and don't fly too close to the sun like I did.

There are a few good ways to do this:

1. Use Github/Codeberg or some other site where you can host your files.

2. Install git through your operating system's package manager, go to the directory where your site lives, and put in these commands:

Code
git init
git add .
git commit -m "commit message"


Ideally, you can do both of these. If you have a home server, keeping synced backups there too is a good idea. 

Logged

"Your worst sin is that you betrayed and destroyed yourself for nothing"
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
Dan Q Cruisin'I DIDN'T meet Dan Q on Melonland!Visited on Melon's 10th Anniversary!
« Reply #1 on: a Winter day » Embed

If you find the command-line intimidating: there are graphical git clients!

If you don't: there are some nice terminal ones too! I'm a big fan of lazygit, I use it every single day and it brings me joy every time. Here's what it looks like:


https://github.com/jesseduffield/lazygit/blob/assets/demo/commit_and_push-compressed.gif?raw=true

Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif

Artifact Swap: PolyamorousI met Dan Q on Melonland!Joined 2025!
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 MelonLand Editor Recent Edits Tenement Arcade Want to Login or Join ? Forum Art Hub Chat Webring Web Guides Graphics Catalogue Wiki Newsletters Image Stream
Melon's Sites TamaNotchi Textures PixelSea GifyPet MoMG Ozwomp Online Loom Videos Leaky Webring Melonking
Tools Melon Software ArtHub Embed Maker ML Passports
Outlinks Frutiger Aero Forum Onio Club m15o's Web Services 32Bit Cafe iMood Webrings Internet Phone Book HTML Energy Declarations Hackers & Designers
Zap!
Minecraft: Online
Join: craft.melonking.net