Code: Select all
git commit -a
I use it so often, I have a two-character alias for it.
Code: Select all
git commit -a
git add *Jasoco wrote:Why is there no automatic sync that uploads both changed files and new files without having to remember which files you added or changed? Who designed that thing?
Dude, chill! Git is awesome. I'd dare say you won't find many professional and/or knowledgeable software developers that don't think version control systems are awesome. If you want a pretty GUI, there are plenty to choose from - and they're all just a google search away.Jasoco wrote:Was it the early 21st century because technology has advanced so far, GIT is so far behind! WTF?
And if I try "git commit -a" it takes me into VIM and asks me to enter a message. But won't tell me how the fuck to actually send the message! F*** I HATE VIM! GOD DAMN WHAT A S***TY PROGRAM!
Did I mention I HATE VIM? I DON'T KNOW THE F***ING KEY COMMANDS TO SEND THE F***ING MESSAGE F***ING HELL!!
There is. You just didn't know it already (despite me actually mentioning it in my first step-by-step). There's a learning curve to everything. Git is crazy easy to use once you've gotten used to it (which shouldn't take more than a few days).Jasoco wrote:Why do I have to do it manually? This is 2010. It should be automatic single command, single button push of all changed, new and moved files without any user interaction.
Oh! Then it's all perfectly understandable.Jasoco wrote:Also, I saw a girl wearing a "Team Cullen" T-shirt.
Like thelinx suggests, read the Git Reference. It will explain things a million times better than I could. In short, add * only adds the stuff that has been changed; and it doesn't upload anything (push uploads).Jasoco wrote:Is it safe to add all files every time? Won't that upload all 5MB of it each time? Even though 4.99999MB hasn't been changed yet?
Edit: Seemingly not. So, how would I go about making a shell script that will CD to the project directory, add *, commit changes while prompting me for a password, then update the files?
Code: Select all
#!/usr/bin/env bash
cd ~/project-directory
git add *
git commit -m $@
git push origin master
Code: Select all
alias com='git commit -am'
Code: Select all
com "Added Snakes() to plane.lua"
Code: Select all
#!/usr/bin/env bash
cd ~/Documents/Coding\ Projects/LÖVE/Adventure
git add *
git commit -m $@
git push origin master
Users browsing this forum: Ahrefs [Bot] and 6 guests