Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "git it?"
-
Git.
The smallest utility made its way to being the largest companies must-have, the most critical part of the whole development landscape.
Using just plain C, Git can shred huge amounts of data insanely fast. It never gets old.
Git is a developer's scalpel.11 -
When you stare into git, git stares back.
It's fucking infinite.
Me 2 years ago:
"uh was it git fetch or git pull?"
Me 1 year ago:
"Look, I printed these 5 git commands on a laptop sticker, this is all I need for my workflow! branch, pull, commit, merge, push! Git is easy!"
Me now:
"Hold my beer, I'll just do git format-patch -k --stdout HEAD..feature -- script.js | git am -3 -k to steal that file from your branch, then git rebase master && git rebase -i HEAD~$(git rev-list --count master..HEAD) to clean up the commit messages, and a git branch --merged | grep -v "\*" | xargs -n 1 git branch -d to clean up the branches, oh lets see how many words you've added with git diff --word-diff=porcelain | grep -e '^+[^+]' | wc -w, hmm maybe I should alias some of this stuff..."
Do you have any git tricks/favorites which you use so often that you've aliased them?50 -
Wife : School tooday ?
Me: Nop... Remote working ! 😎😁
Love programming
Wife : But how people know you working.
Me : git commit -a -m "im working on it" && git push
Wife : ohh never mind have a good day !
Me : you too17 -
"We don't need git. It takes too much time to setup all that."
Suddenly there was fire everywhere.7 -
*Overhearding Convos*
A : "Dude, have you tried vim? It sucks!"
B: "I know right, why do they have to make it so hard to use..."
Me whispering : Git Gud Boi...10 -
Why the fuck did I set up GitHub and all the deploy scripts if your just going to fucking ignore it and edit directly on the server?!?
"Oh, I ran out of time"
DO YOU EVEN KNOW HOW SIMPLE GIT IS?!?!?
"git add file
git commit -m 'Queef farm'"
AND YOU'RE DONE!12 -
Senior Dev at work told me to cherry pick commits from another branch....later found out that it is an actual git command ! 😅
git cherry-pick <commmit>9 -
other dev at work: "why cant i switch branch of my SVN repo like Git"
Me: "Cuz it uses different approach, different branches are at different locations......."
Him: "but how can i use it like Git"
Me: "you cant"
Him: "but why"
Me: "Get away from me before i throw something heavy at you"10 -
Git Pull Failed, Merge Conflict.
Me:
don't do it
don't do it
don't do it
don't do it
don't do it
don't do it
don't do it
Me:
Delete local project folder and pull the project down again.12 -
I forced my friends to use git(hub) as vcs because their project was in a usb-to-usb state, which was unacceptable for me. So I offered them my help and uploaded it (with a little bit of a forced consent) to github, to end this misery. Of course I helped them the basics of git. Now they automatically use git(hub) as vcs and to share their code.
I feel proud for this :)10 -
Project Leader: the team needs to use Git
Dev team: yeah Git, it will help us a lot
.
.
.
[three days later]
Dev: we send the changes via Dropbox, see you on monday!7 -
Never gonna git you up
Never gonna pull you down
Never gonna fork away
it's a bad day!
Never gonna git you up
Never gonna commit again
Never gonna get issues
That's how it goes3 -
Share your most useful terminal aliases and functions.
alias gs='git status'
alias gcm='git commit -m'
alias push='git push'
alias pull='git pull'
alias hosts='sudo nano /etc/hosts'
alias glog='git log --graph --oneline --decorate -n 10 --color'
alias mykey='cat ~/.ssh/id_rsa.pub | xclip -sel clip'
function mkcd () {
mkdir -p -- "$1" && cd -P -- "$1"
}
As well as one for each major project (lets say 1+ weeks of dev time) to immediately cd to it from anywhere. How about you guys?
Always looking to improve my terminal commands, so am curious what everyone else uses for shortcuts.27 -
There is no reason for any developer to not know git well. No fucking reason. Stop making shit harder for everyone by being like “oh I’m not the keenest on git” STFU and just learn it better you pussy.28
-
introducing my classmates to git and how it can help us.
*explaining scm, git, github and bitbucket, and conflict resolving*
"why don't we just use google drive ?"6 -
> git commit -m 'fixing what I broke earlier'
> git pish
> git: 'pish' is not a git command. See 'git --help'.
Did you mean this?
push
> you know I meant push, why can't you leave me alone and just do it13 -
I just started using git. it is unbelievably useful. What an idiot I was that I didn't start using it earlier. I LOVE GIT!3
-
saying git is shit (cite at the end) and nobody professional uses it.
cite:
"GIT ist scheisse, es ist schwer zu installieren und man muss die Kommandozeile benutzen. Das benutzt doch niemand."26 -
How is it that my wireless headset becomes the name of my git bash session in VS code? Speculation welcome.12
-
Every time I mess up my git branch I usually find that its pretty futile to fix it with fancy commands like 'git reset', 'git prune', 'git rebase', etc. I usually find it easier to just start over from scratch.
They should really add a command for that
'git fuck-it-start-over'9 -
Don't do "git pull" quickly. Always do a "git fetch" THEN "git log HEAD..origin" OR "git log -p HEAD..origin". It is like previewing first what you will "git pull".
OR something like (example):
- git fetch
- git diff origin/master
- git pull --rebase origin master
Sometimes it is a trap, you will pull other unknown or unwanted files that will cause some errors after quickly doing a git pull when working in a team. Better safe than sorry.
Other tips and tricks related are welcome 😀
Credits: https://stackoverflow.com/questions...5 -
@dfox can we please add an optional 'vote' option in rants? :D It would be fun to check the preferences of people for different things.
e.g. How do you pronounce 'git'?
1. Git
2. Jit24 -
git blame
More like
git whose line is it anyway
Where commit messages are made up and the branches don't matter1 -
I just saw
`git add . --all&&git commit -m update&&git push`
as a npm script hook m) I don't even care, just surprised it wasn't named yolo.2 -
Probably posted before, still funny!
alias yolo='git commit -am "DEAL WITH IT" && git push -f origin master'1 -
You know what? Fuck it. Git CLI. Hot take.
Question is "least favorite". Not "worst". Not "least important".
Git is great, essential, fantastic, whatever. But I hate interacting with the CLI. I can never remember the stupid fucking commands, I always mess shit up if I need to do something outside of my normal workflow, and honestly, usually the correct way of doing shit looks fucked.
So fuck git CLI and its learning curve27 -
Github Inc. (Feel good inc. parody)
=========================
Ha-ha-ha-ha-ha-ha-ha-ha-ha-ha-ha-ha-ha.
Github.
Fetch it, fetch it, fetch it, Github.
Fetch it, fetch it, fetch it, Github.
Fetch it, fetch it, fetch it, Github.
Fetch it, fetch it, fetch it, Github.
Fetch it, fetch it, fetch it, Github.
Fetch it, fetch it, fetch it, Github.
(change) Fetch it (change), Fetch it (change), Fetch it (change), Github
(change) fetch it (change), fetch it (change), fetch it (change), Github
Repos breaking down on pull request
Juniors have to go cause they don't know wack
So while you filling the commits and showing branch trees
You won't get paid cause it's all damn free
You set a new linter and a new phenomenal style
Hoping the new code will make you smile
But all you wanna have is a nice long sleep.
But your screams they'll keep you awake cause you don't get no sleep no.
git-blame, git-blame on this line
What the f*ck is wrong with that
Take it all and recompile
It is taking too lonnng
This code is better. This code is free
Let's clone this repo you and me.
git-blame, git-blame on this line
Is everybody in?
Laughing at the class past, fast CRUD
Testing them up for test cracks.
Star the repos at the start
It's my portfolio falling apart.
Shit, I'm forking in the code of this here.
Compile, breaking up this shit this y*er.
Watch me as I navigate.
Ha-ha-ha-ha-ha-ha.
Yo, this repo is Ghost Town
It's pulled down
With no clowns
You're in the sh*t
Gon' bite the dust
Can't nag with us
With no push
You kill the git
So don't stop, git it, git it, git it
Until you're the maintainers
And watch me criticize you now
Ha-ha-ha-ha-ha.
Break it, break it, break it, Github.
Break it, break it, break it, Github.
Break it, break it, break it, Github.
Break it, break it, break it, Github.
git-blame, git-blame on this line
What the f*ck is wrong with that
Take it all and recompile
It is taking too lonnng
This code is better. This code is free
Let's clone this repo you and me.
git-blame, git-blame on this line
Is everybody in?
Don't stop, shit it, git it.
See how your team updates it
Steady, watch me navigate
Aha-ha-ha-ha-ha.
Don't stop, shit it, git it.
Peep at updates and reconvert it
Steady, watch me git reset now
Aha-ha-ha-ha-ha.
Github.
Push it, push it, push it, Github.
Push it, push it, push it, Github.
Push it, push it, push it, Github.
Push it, push it, push it, Github.2 -
I forced myself to use git on my latest projects. And the more I use it, the more I love it. I can relate to all the git-love here on devRant.21
-
git commit -m "It's 4:59pm, let me commit since it seems like a sane choice even though everything is currently broken"10
-
Just saw a repository with branch name - 👶
bitbucket gives this - git fetch && git checkout 👶 for checking it out,
wondering how would anyone checkout this branch without copy pasting the above line from the web xD8 -
Git. Not Linux, not python, not gimp, not GCC, not Emacs. Git.
Because it saves your work and you can work with other people on one project in a human way5 -
How many of you use GIT from a plugin in the IDE?.
I've never even tried to use it.
I feel that cli is the way to work with git.18 -
One day Linus Torvalds will make a statement about git like: "Why is everybody using this? It was just a joke!"2
-
I never really used Git or any Source Control before but today I decided yo give it a shot.
IT'S FUCKING AMAZING!!
I fucking love branches!!! I have to change the way an app stores configurations and git makes it incrediblyyy easy without risking fucking up everything in production5 -
Only site which helped me alot to get me started in advance git commands was : ohshitgit.com
It also helped me when i started contributing in open source
Check it out :)3 -
Got a friend request on Facebook and it reminded me of xkcd #624.
I hope they're at least using git-lfs.19 -
When you start a course project and everyone agrees on using Dropbox for the code cause "it is easier than git"2
-
Developer confession.
I always git push a new branch even though I know it will error as there's no upstream, just to copy the full git push with set upstream arguments from the error message.11 -
Apparently the firewall at work has blocked access our git repo since there are too many consecutive requests to it.3
-
-> everyone at the company uses git
-> asked to change some stuff
-> boss says "don't remove the old code, just comment it in case we need it in the future"
-> ...
-> ???3 -
That one time I was appointed to be a group project leader and forced my members to learn git. It was a fierce battle, but I did not give in.
Needless to say, I eventually got some thanks in return (after insults about git being complicated)9 -
Me : Who wrote that monstrosity of code ? I’m going to kill someone!
Git blame !
Me : Oh never mind, it was me 4 yeas ago.9 -
Another real-world argument for why I always say git is worth learning properly.
Had to track a really weird bug down today. Had no idea where it came from, how long it'd been in the code and hadn't the foggiest what was causing it. Realistically it could have been introduced any time in the last year or two, and that's tens of thousands of commits in this repo.
Git to the rescue. Knocked up a quick script to test the case in question, fed it into "git bisect run", and 30 seconds later git found the exact (small) commit that caused the issue.
It's a brilliant part of git, yet it seems like almost no-one I know uses it. Some use "git bisect", but using "git bisect run" and passing a script to it seems to be alien to most - yet it's probably my most used tool when it comes to tracking down bugs like these.8 -
// Return data
return data;
Found this in our code recently, had to check who pushed it to git. Apparently i'm an excessive commenter 😫2 -
these are the kinds of commits i have to deal with :|
like "it's already past 5 o'clock! i have to leave!"7 -
Added a mysql-dump file by misstake in a git commit ....
250MB explains why it took so long to push it to the gitlab server ... -
Our PM hears us talking about git repos, and responds by referring to it as, "get," as if she was correcting our bad pronunciation.8
-
It is time. I have to admit it.
I don't understand Git.
I just memorized some basic commands: git commit, git push, git push -u origin master, git clone, git checkout [-B], git merge. That's it, that's the full list. I use them like they're some kind of magic spells that do what I need. Everything else, those intricacies like rebasing, resetting, HEAD and all that shit, is beyond me.
I'm not a real programmer. Real programmers know Git.30 -
When your peer dev is ++'ing your shit on devRant instead of git pushing the project so you can work on it too 😒 @filipe0957
-
I don't get it when people (developers) complain that git is hard and unintuitive to use.
Most of these people use some GUI client to do the dirty work. I've found every Git GUI client that I've tried tedious.
Does anyone relate?15 -
What the flying git did I just do.
So here I am, finishing my billionth.. ok maybe not that many, feels like it some days.. task so I do the following:
git add /path/to/file.ext
git commit -m "yay done for the day" /path/to/file.ext
- yes I specify the files in a commit, I've had bad days in the past, plus I can work on multiple files at a time -
But anyway...
Then all of a sudden 20 other files are now staged for commit 🧐🤪🤭😱🤯
Wtf!
Guess I'll be sorting this mess out before doing a push tomorrow morning.rant back to git bash i go yes i use terminal inside vscode vscode being stupid again i didn't do it git mind of its own1 -
Me: How can I delete pushed commits from origin?
Colleague: Just do git reset --hard and then git push -f
Me: But this is dangerous
Colleague: Wait, I'll do it myself
Colleague: Done
Me: But nothing happened
Colleague: Fuck. I just removed all changes on my own branch2 -
Project Owner: We don't need Git, it's a waste of time to set it up!
Yeah, whatever you say old man...7 -
Found a very interesting use case of git and github, it seems that even government such as the Washington DC City council uses Git & Github to publish laws! Citizens have even given PRs to fix certain typos through git :p.
https://government.github.com/commu...8 -
*doing the happy dance*
🕺💃🕺🎶🕺💃🕺🎶🎶🕺💃🕺
IT WORKS!! It finally WORKS!!! For the first time. AND IT WORKS!!!
```
^s^s^s^s^s^s^s
git add .
git commit -m 'IT WORKS!!!!'
git push origin
git push backup1
git push backup2
```
*continues with the dance*random 2 days later this moment will be forgotten it works! enough work happy time for netflix and sweet popcorn took me 4 years to get here a lot more left to do8 -
FFS stop squashing commits. If “updated comments” is what the commit was it should show it in git blame. If “fixed null check” is what the commit was it should show it in git blame.
There is no reason to have “ticket-234 service revision” beside 1000 lines of code. How does anyone justify this loss of git info for the sake of “clean history”? Nobody looks at your history and says, “That is bloody clean git history I should write home about it.” People do however look at the code and say, “I wish I knew WTF they were trying to do on that line.”16 -
First thing on Monday. The very first thing.
I fucking killed prod.
Reminder to my future self to either stash local config files and .htaccess files... or add them to gitignore... But either way, don't leave them lying around assuming I won't do something dumb and accidentally commit them. Because some fateful Monday morning before I've had my coffee I'm going to do something dumb.8 -
Friday. 17:56. Time to go home.
> git add *
> git commit -m 'wip, feature almost done, need to test'
> git pu... [BIG FAT BSOD]
fuck it, I'm out13 -
Setup git push notifications (to each of their own channels), together with automatic deployment via webhook, though I'll add notifications to that too, as it currently doesn't have any besides the log file.
Gitea really has been a blast for me to finally get all things git - done, maybe because it is just so lightweight.6 -
Enough is enough! I can't do it anymore!
...
alias pm='python manage.py'
alias ga='git add .'
alias gc='git commit -a'
alias gi='git init && touch .gitignore && printf ".idea \n venv \n node_modules \n out \n *.iml \n *.log \n build \n target" > .gitignore'
alias gp='git push'
alias gps='git push --set-upstream origin master'
alias gr='git remote add origin'
...
Much better :D12 -
You lousy fucking test class of an ass wipe,
TLDR; it fails and it passes all at the same time.
So during a deployment, one of the pre-deployment test classes fails, not something anyone has worked on so figured I run it manually to see what’s going on, but no the shit of a thing passed second time around.
Now because we can’t deploy without 100% of the test classes passing so I have to organise another deployment which it fails again. Fuck this,
Unprotects master
Git checkout master
Git merge dev
Git push master -f
Protects master
Skrew this!
Well would you look at that, it works now 😰 -
My current workspace. Nothing fancy but it does the job. Tools: Windows 10, Emacs, Visual Studio 2015, git, bash.2
-
I'm the git expert at my work. This means every time someone has the slightest issue with git (or the git features in their ide), I get interrupted.
😡😡😡
Also I will say it is fascinating watching people who've used centralised version control all their lives struggle with distributed.
"Do you have my changes? I merged them into your branch..."
"You can commit and not push?!"9 -
I finally found it!
I set up an self-hosted gitlab at our company and for some reason everything worked except for one thing: using git (clone, push, etc) via SSH.
The solution was on the 'common installation problems' page at gitlab, but it took me a long time finding it through Google.
I read through the auth.log and realized the 'git' user was locked. Swapped the '!' for a '*' in the /etc/shadow and now it works. -
Looking at the version history of Git (which is obviously tracked by Git), it goes all the way back to the initial commit...for some reason this blows my mind.2
-
"Tar up your projects as version control."
- CS teacher
I understand git is hard (just the awkward syntax) and not part of a curriculum, but can it at least be suggested? A whole year later, I found out about git and it has made CS projects so much easier.
git commit -a -m "No more tape archiving"4 -
I have started my first job as a web developer since February 1st. During the one month training period which is in progress, one of the training sessions was on Git and believe me Git is the most fascinating thing came to know me since I have joined computer science field. In love with it.2
-
Lead messed up the Git workflow (New repo), ask me to fix it. And when I said that we better do it from first properly, asked me if I even know git 🙄 Feel insulted.3
-
One of my teachers pronounces the 'g' in 'git' like the 'j' in 'jet' and it confuses me each time he says it4
-
It finally happened. One of our junior devs pushed a secrets file to their git branch and now I have to reset ALL THEIR CREDENTIALS. "git add ." will be the death of me.19
-
Sometimes I think that git is like a drug. After getting past the initial learning curve, you use it in every single one of your projects. Sometimes I wonder how have I ever survived without git before.3
-
Me: Is git male or female?
Friend: male.
Me: why?
Friend: it does all the pushing and pulling!
Me: Really? I think we push and pull into git.3 -
Reminiscing the days before Mercurial and Git,
1) I delete foo.cpp.
2) I tell Subversion to delete foo.cpp from repository.
Subversion: Error - can't delete file because it doesn't exist locally.
3) I create some dummy foo.cpp.
4) Again, I tell subversion to delete it.
Subversion: Error - can't delete file because it exists locally.
Every time I get angry with Git (strangely never happens with Mercurial), I remind myself what Subversion was like.1 -
When you make a mistake and try to fix it, but you can't remember how to spell amend...
git commit --ammend
error: unknown command `amend'
git commit -ammend
[branch-name] mend
Huh?
git log
commit #
mend
Created a new commit with message 'mend'. Now to clean this all up and go get some sleep!2 -
"let's use git for this game jam"
Wait! Don't go! I love git and use it on every project I work on! You'll have to hear me out here.
This was 4 years ago, at my first Global Game Jam. Every jam and game I'd worked on up to that point, I was the only Dev; no need for git, as backups were more than enough. I joined a group with high hopes for the game jam, with three coders and a proper art team.
The entire jam was "1 step forward 2 steps back", as git somehow constantly overwrote code as fast as we could write it.
By the end of the jam we barely had anything to show for our hard work. The takeaway isn't even about git. It's simply to never work with other people. Git is a great protocol but it can't stop people from accidentally fucking other people over. Every jam since, I've worked on my own and had a far better time of it.3 -
Just discovered Insomnia Designer, I freaking love it and it's git integration. This is exactly what we developers needed for years 🥳10
-
Docker is a scam.
Git is garbage.
The cloud is a scam.
I hate it all now.
Maybe I should try roofing.42 -
I hate it when (Java) programmers produce such clutter just because their OOP 101 professor told them to do so in 2005.
I refactored it using `git rm`.12 -
"Did you get it?"
"Yes. I GIT it"
* Silence *
"Oh. What were you saying?"
Things that happen when I'm coding. -
I think the reason why git beginners have a hard time with it is because the api is a bit untuitive.
For example: if you want to "unstage" staged changes, you run git reset, and if you want to "delete" those changes from your working copy, you git checkout those files.
But then, you find out that you can do all of that if you git add . and git reset --hard.
So you're like "huh..."
And then you discover that if you end the resethard with a branch name/commit id then you also make current branch point to the commit or that branch/commit (respectively).
So you're like "huh..."
And also if you add a commit id or branch name to git checkout, you change the current branch to specified/enter detached state with HEAD pointing to that commit (respectively).
Oh and you don't use git branch to create branches, you use git checkout -b because it's a lot shorter.
So here's a rundown: git reset mutates things related to files, but also mutates things related to branches.
git checkout also mutates things related to files and mutates things related to branches too (in a diff way). Also, creates new branches.
I don't think this is intuitive. We users use the same commands for different purposes with just a different flag.
Commands shouldn't mutate different types of things. But don't composite commands (as in, "smart" commands that mutate different things) shoudln't be a flag in an existing command, it should be a single new command of its own.
Maybe if I reread the internals of git now, I'll be able to disgest the dozens of technical terms they throw at you (they are many). And in my mind, the api will cognitively fit to the explanations.
Here's another one that feels weird too.
If you want to make your changes start on top of someone else's commit, you do git rebase.
But git rebase -i can be used for that, and also to delete, modify changes or message of, reorder or combine previous commits of the current branch.
Maybe the reason why several things we do overlap with the same commands is because they internally do similar things, and while not separating those commands might make it less intuitive, it makes them more sensible? i dunno...
disclaimer: I'm not setting this opinion in stone though, and am aware that git was created by one of the most infuential programmers.6 -
Every other day, Git is the best version control ever. Today, got damn it Git, why can't it just work7
-
You see that got checkbox ‘initialize git’? Just ignore it for now, you’ll maybe want to learn about it later...4
-
One day i started to code.
One day i was told you will not code without git.
Many days i lost code on git because i was ignorant.
Today i reset the act of commiting without losing all my shit.
Git reset --soft HEAD^
I didnt event sweat it ;)
Today i feel like half a boss!!! -
Git vs floobits
I hate floobits! But my team wanna use it because they are too lazy to commit their code!!!3 -
If Microsoft acquires GitHub, it will be far from the end of git. Even if it is an EEE play, there are still many FOSS variants that will enable the use of git without having to deal with Microsoft's toxic business model.
I still have my gitlab install, and I will continue to use it.4 -
I think of git as if it was my dog. For added fun name your remote "slippers". Then you can exec "git fetch slippers"2
-
I didn't manage to win a Hacktoberfest 2020 shirt because I don't use GitHub anymore (and they require that apparently) - but I figured I might as well have a go at it.
echo "- an amazing project" >> README.md
git add devduck.png
git commit -m "update docs"
git push devrant feed
Pls like, comment, share, and subscrieb to CodeWithCondor for moar laif hakz :34 -
It all started when I commited my server password without noticing...
TL;DR: Reinstalled the server, delete + recreated the git repository 😢8 -
Why does a "senior" developer have a git repo for a critical application that makes our company money, never push to it? I checked it today and it's empty.4
-
The first project I used Source Control with.
At my university, we were told that it would be a lot easier, and that we were required to use SVN, and not Git. Me not knowing much about either, decided to learn from two people who used Git.
Confused as I was how it all worked at first, we spent a couple hours trying to work out a work flow, and how we wanted to use it.
Eventually, I was like "Guys, I got it!" And explained how we should do it. Then then said
"That's how Git works"
We decided to use Git, and at the last minute shoved everything onto the school's SVN server they had for the team.
Been using Git ever since. Looking back, not sure why it was so hard, but I am glad to have found Git instead.2 -
Asked my colleague not to commit android settings and build files into git, ignores me and goes ahead to do it anyway. Now, every time I pull from Git, I have 6k+ files that are changed 😑2
-
I know that this will bring me many new enemy's but I'll just say it.
I like Mercurial more than Git.4 -
So the makers of Sublime Text are working on a GUI Git client now?
It looks really interesting, could be a good alternative to Gitkraken!
Here's the link btw: https://www.sublimemerge.com
What I would really like to see is a plugin support! I don't know of any Git Client that has that...
Anyways, I will try it out later and post my opinion here!4 -
I might have asked this before, but since everyone on devRant except me is familiar with Git, please help me out a bit.
1. Should I use Git for a personal (game) project with a friend? (We'll work together via skype since we live far away from each other)
2. Noobs call Git "too difficult" - it seems difficult to me as well, what's your best advice (or resources, Git alternatives) to pick it up easily?
3. Will I have trouble with my slow internet (4mbps down 0.2mbps up)?16 -
Fourth semester. Programming Project.
My colleague named every git commit 'Pfuschpush' (Pfusch = botch) and pushed every crap even if it did never work. I had to fix it. Every time. 😭2 -
Well since vim & git has already been said gpg. you can use it as ssh keys and sign your commits to make sure nothing nasty is added to a git repo under your name
-
I realised, that Git now has the same problem as Windows:
Its widespread because its widespread.
There are, especially for smaller projects, few reasons to actually use Git instead any other VCS.
Look at the landscape of free repo hosting.
There are hundreds, if not thousands of free Git hosters.
A handful of free Mercurial hosters,
Launchpad for Bazaar and I didn't even find a free SVN hoster.
Everyone uses Git, because there are Services for it, and there are Services for it, because everyone uses it.5 -
Our company recently moved to git and the number of people who do not understand basic git concepts like commit and push are too damn high! I don' get it, its a completely logical model, what is so hard to understand.4
-
For our robotics team we have a college professor (if that's what you even call it) who is teaching our programming subteam how to code the robot in c++. Whenever we mention git he goes on and on about how git is too confusing and we shouldn't use it even if we used pull requests.
What the actual fuck11 -
Something to cheer you up mid-week:
> alias yolo='git commit -am "DEAL WITH IT" && git push -f origin master' -
Am I the only developer in existence who's ever dealt with Git on Windows? What a colossal train wreck.
1. Authentication. Since there is no ssh key/git url support on Windows, you have to retype your git credentials Every Stinking Time you push. I thought Git Credential Manager was supposed to save your credentials? And this was impossible over SSH (see below). The previous developer had used an http git URL with his username and password baked in for authentication. I thought that was a horrific idea so I eventually figured out how to use a Bitbucket App password.
2. Permissions errors
In order to commit and push updates, I have to run Git for Windows as Administrator.
3. No SSH for easy git access
Here's where I confess that this is a Windows Server machine running as some form of production. Please don't slaughter me! I am not the server admin.
So, I convinced the server guy to find and install some sort of ssh service for Windows just for the off times we have to make a hot fix in production. (Don't ask, but more common than it should be.)
Sadly, this ssh access is totally useless as the git colors are all messed up, the line wrap length and window size are just weird (seems about 60 characters wide by 25 lines tall) and worse of all I can't commit/push in git via ssh because Permissions. Extremely aggravating.
4. Git on Windows hangs open and locks the index file
Finally, we manage to have Git for Windows hang quite frequently and lock the git index file, meaning that we can't do anything in git (commit, push, pull) without manually quitting these processes from task manager, then browsing to the directory and deleting the .git/index.lock file.
Putting this all together, here's the process for a pull on this production server:
Launch a VNC session to the server. Close multiple popups from different services. Ask Windows to please not "restart to install updates". Launch git for Windows. Run a git pull. If the commits to be pulled involve deleting files, the pull will fail with a permissions error. Realize you forgot to launch as Administrator. Depending on how many files were deleted in the last update, you may need to quit the application and force close the process rather than answer "n" for every "would you like to try again?" file. Relaunch Git as Administrator. Run Git pull. Finally everything works.
At this point, I'd be grateful for any tips, appreciate any sympathy, and understand any hatred. Windows Server is bad. Git on Windows is bad.10 -
I actually love GitKraken, it's a very cool and awesome Git Client :-)
It helps me a lot and saves time.
Do you use it?6 -
Man fuuuuuuck, there's nothing more frustrating and scary than fucking up a local git repo. Because you know for a fact you won't be able to restore it
And I even had god damn backups of the .git folder. But reverting leaves me with more files than I started with fuuuck9 -
It’s funny cause I don’t use GitHub much and don’t know git... yet. So basically I don’t understand all those git jokes. I only used GitHub a few times, and it was without the desktop app (which I find fucking stupid since you need to “clone” everything....8
-
If you're a javascript dev and you haven't read "You don't know JS", you should give it a try. Officially posted as a free git book.2
-
I have been working with git for years now, and I could never work on a project (regardless if big or small) without it. Its great.
However, just a couple of days ago I learned about the git flow branching model.
Even tho I also worked with branching on a daily basis for years, I did not know about this model. And I have to admit: Its awesome.
If you don't know it, I highly recommend you to look it up. It really improves the already organized workflow with git even more. :)5 -
Git is good. Even when I do stupid things like reset a commit I wasn't supposed to, it gives me the chance to fix those mistakes.
(Oops. !rant)1 -
Visual Studio Code !!
It has tons of features, form keybinding, to language support
I just love the inbuilt terminal support
And with git integration and some plugins, there's absolutely no need for separate git client -
Using git without a GUI is like biking blind-folded. Sure you can do it but it's way easier if you see what's going on.26
-
Wondering how many people use git cmd and how many use different git clients.
I regularly use git cmd. I made a transition from clients a while back because I wanted to learn more about how it actually works and it works just fine for me, except when I have to google something I don't remember (like how to revert local commit)
Git clients will for sure do abstraction which can be both good and bad, but I'm wondering if there are any definitive pros for clients.12 -
Today I created my first shell script for automation.
I have a git repository I use for backing up documents at the training centre I'm at for work. Not a specific project, just all of the documents and miscellaneous stuff. The need for this came about because they re-image the computers every month with a new version of windows (Because they're too cheap to register windows). And I can't risk forgetting to copy all the files onto my USB drive the day before they re-image.
So at the end of each day I open a git bash and type:
git add .
git commit -m "Backup - dd/mm/yy"
git push
Not a particularly laborious task but repetitive and time consuming.
So I decided to create a .sh script to automate the process
(The idea originally occurred because of this post: https://devrant.com/rants/329221/...)
So after about half an hour fiddling about with dates and $ signs, I came up with GitBackup.sh:
git add .
today=$(date '+%d-%m-%y')
commitMsg="Backup - "$today
git commit -m "$commitMsg"
git push origin master
Not much but proud to call it my first automation script.2 -
incompetent fucks giving no shit about agreed git flow
merging directly to master
complaining about conflicts and not willing to solve it themselves6 -
Confession: I know how to use Git but I want to learn how to use it properly so my team won't crucify me.8
-
The moment when you forgot to commit your work to git, managed to accidentally deleted it and recovery tools can't help you. FML I'm an idiot!4
-
That I really hate svn.
It is completely useless compared to git and I can not understand why one would use it for any project with more than two people.7 -
Studiying CS in Germany, learning about CVS, SVN and clearcase....but no fucking word about git!?
Anybody using clearcase today ? Never Heard about it before7 -
Just posted a comment, and I realise it should be a rant.
In reply to stalkCoder (i think):
| At first there was nothing
| $: git init
| And then there was light
A new creation myth appears.
$ git add --all
$ git commit -m "Update 32 at 2:48 AM"
$ git push
The new creation myth is destroyed by the pure rage of a thousand Git commit message standards. -
What do you guys think about mercurial (hg)?
I think it has no place in a world where git exists and I prefer git.
Just wondering what the general sentiment is15 -
OMFG! Another git gui? Better make one more calculator for this world. At least it could become useful somehow.2
-
Starting a new project, I suggested using git instead of TFS(last project was TFS) to my boss. He said “It (the project) is VS based, so to keep things easier...”.
I don’t think basing your project around an IDE is a smart thing to do. I don’t even like TFS its caused quite a few problems for us and is much less smoother than git. Furthermore VS offers really good git integration!4 -
That moment when you introduce your team to git and they acknowledge it. " I abide by the git God." 😂
-
Git should rename their commands to past tense verbs, so it can be "git merged!" (get merged), etc.3
-
Well, it happened, my school managed to block SSH
It also means no more git, and if this shit isn't fixed I might be forced to use TFS
Whoop de doo11 -
When your team members don't have a fucking clue how git works and you've explained it thousands of times to them already.6
-
What makes you nervous no matter how many times you do it?
- Job Interviews and 'git push' at times5 -
Fuck off git!
Why the fuck is a simple "git status" getting stuck? Is it even gonna return something by the end? How long am I supposed to wait?
Ffs 😡😡😣26 -
It has been always so annoying me to learn git !! Why I feel it so difficult than a programming language ??!!6
-
Is it just me, or does anyone else find it extremely satisfying completing a successful git push -u origin master?
-
`alias pull="find . -name .git -print -execdir git pull \;"`
A while ago, I found someone asking about personal favorite aliases. I cannot find it now.
I am not a huge terminal user so I don't really care about keeping aliases until now.
It became annoying to `git pull` before doing anything when you are using two different machines regularly and there are always about a dozen active repos.2 -
After having witnessed developers use IntelliJ's built-in git functionality, I am persuaded that it should have never existed in the first place.
Asking you if you want to git add after every file you create, providing dangerous shortcuts that do pull, merge and push at once, but most importantly providing just enough comfort to keep their users ignorant about interactive git add or rebase, and other advanced git functionality.
The search for all the UI buttons + IntelliJ's baseline 5G RAM consumption is both slower and more error-prone than using the Git CLI15 -
Git tip: Before doing "git clean -fd" always think twice and backup the whole folder manually before doing that. Take it from me.
Also be careful with, "git pull" 😩13 -
I hate this stupid git, said by my colleague who really don't understand how to use it properly.
They always fuck up merges, forgets to commit and loose changes and fails terribly in resolving conflicts.
Yeah! Git is not stupid my dear. It is you who is stupid.6 -
I think I'm in love.
Can you legally marry a computer program? Because I sure would like to propose to git.
When I read the various "What do you regret not doing sooner? Starting to use GIT" rants, I though meh, it cannot be that amazing. But it is, it goddamn is.
GIT already managed to save me ~three days of headache, and possibly prevented me from degrading my AI. And all that on the first day of usage!
I think my life has become at least 30% easier today^^3 -
git commit -m “it compiled”
git commit -m “typo”
git commit -m “ugh”
git commit -m “wtf”
git commit -m “ok this doesn’t totally suck”
git commit -m “:shipit:” -
Git push is now followed with a tab of GitHub.audio and waiting to see it show up and ping. I'm lonely.
-
Merging one git branch into another when it conflicts an added line or function.
Like really? You can't handle ONE LINE being added?6 -
when you script git commands to push with the message "bug fixes" because you're tired of doing it by hand2
-
git, easily. Once you understand how its data model works you can unfuck pretty much anything and it feels like time-travel sometimes.
-
seriously I can't understand the logic of visual studio team explorer.
I git bash it all the way.
who's with me ?11 -
my git diff too big such that gitlab doesn't display it be default
oof
not a good luck when putting your changes out there1 -
I was discussing something about git today with a colleague and then it hit me. Git push --force is like rape. You don't want to push? I'll force you to😂
-
Is SVN still acceptable and how much worse is it compared to git? I was just transferred to a team which still uses it and I am debating whether I should just comply and learn it or to push for git.15
-
if you're new to git, becareful not to do something like git reset --hard
it works similar to
git checkout --
rm -rf.
and deletes your files that haven't been checked in3 -
git rebase is like fish.
Hours after the kill: hmm, tasty.
A day after the kill: not too bad.
A few days: time to toss this in the trash
More than a week: dig a hole and bury this thing before it stinks up the neighborhood.
That being said, I'd rather eat a plate of Hákarl than deal with rebasing a diverance that is over a month old. I simply don't use rebase. It's just too stinky. I just merge very often and keep things in sync.
If you need the effect of a rebase without the crazy hassle:
git checkout master
git checkout -b rebase_branch
git merge --squash dev_branch2 -
We work in VDI environment, that likes to nuke itself randomly and takes with it all the hardwork for the week.
I came up with one solution -
Name - Fsync.sh
Task - backs up all your work to a common shared network drive. This backup is in deltas to reduce network load and to save space.
How? I used git!
It gets the code changes from existing cloned repos & it git inits in folders like Documents & downloads.
Git tracks the changes for me :D3 -
Kind of a coding error. My git status was full of files I haven't committed, and I wanted to clear it.
I took a guess and thought 'git clean' would do the job. Stupidly I was in my documents directory, and I then said goodbye to all my documents... r.i.p.1 -
When I do SSH to a remote server, how can I show git branch name?
When I SSH it shows me this:
admin@123.456.789.555:/home/some_folder$
Can I configure it to show something like oh-my-zsh that shows me the current Git branch I am pointed to?
This is my local iTerm zsh default theme:
some_folder git:(feature/some_branch_name)18 -
'I'll fork you'
Anyone know of some Git puns?
I'm tutoring a group of students (university) on using Git effectively in a team. Anything to make it more humorous would be awesome :)5 -
I can't stop myself from making my commit messages completely sarcastic or off the wall, which never makes sense to future me.
for ex: my commit right now is
"push it real good"
This does not help me. How do I stop?
lol5 -
Hi guys what is the meaning of double back slash in my Git folder? It is not removed when I do a "git clean -fd". This is the first time I encountered something like this.
$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: some/folder/hello.php
Untracked files:
(use "git add <file>..." to include in what will be committed)
"\\"
no changes added to commit (use "git add" and/or "git commit -a")8 -
PSA: Writing code right now? Taking a quick break to check your phone? Make your effin commit. Git, SVN, etc.... Don't care. Do it.1
-
My laptop is having some power issues and it often turns off randomly.
Last time, it happened while running some git stuff and since git didn't finish properly, the whole git directory fucked up: I could not do anything with git anymore.
Later I find this dude: https://stackoverflow.com/a/...
If you're in here, Nathan VanHoudnos, just know that you save more lives than any politician1 -
I need people with Macs (running macOS) to help me make sure this Python script I wrote works. I'll upload it to git{hub, lab} and link to it in the comments.4
-
Yesterday i went coding, tired as hell. I told myself “Atleast i get smth done“ i was wrong. Redid everything and now expect many merge conflicts when i get home1
-
Spent nearly 2 hours why the module/plugin on the system was not working. Delete the plugin. Get it from git. Nope. Restart all services, restart server. Still the same. No errors, nothing.
Realized that I had cloned the wrong git repository.
Fuck me.1 -
Learned git, decided, imma use this while I make a little game in Java, couple days later, I find out that net beans has git INSIDE of it... :/ ....3
-
I learned Git in the most ridiculous way possible.
Noob me, is using VSCode and i tried clicking the git icon. Now, i didn't know what i was doing and i suddenly made a git repo and i just checked on things (add changes and commit) and little do i know that it was all absorbed. I got skeptical (spying on files, i didn't know what's happening, etc.) so i clicked the "x" button and it warned me that it will be "completely deleted" and it will be an "irreversible action". Due to my stupidity, i pressed okay.
Then that was the time i knew, i fucked up.
But hey ho it took me 12 hrs to recover all files (1600 loose objects) that has been deleted using a 3rd party app (without any master, no last commit message, no everything, just objects a.k.a the blob files that git saves). I tried looking for easier ways to get the files, but it was there in front of me the whole time, so it took me longer.4 -
Tried to deploy a release ... pasted the git tag after copying it from a Jenkins build. We’ve done this a thousand times, BAU....
The deployment process tries to `git ls-remote 'git@git-repo.com:org/repo.git' '5.1.0*'` and complains it can’t find the tag in the remote.
Three hours later, 20 grey hairs the richer, I copy the build log into Slack to get some validation from others that I’m not crazy.
`git ls-remote 'git@git-repo.com:org/repo.git' '<200b><200b>5.1.0*'`
Faaaarrrrrrrrrrrrrrrr .... -
Well it says favorite tool, that would have to be vim. Close second is everything jetbrains ever made including Kotlin. Most useful would probably be git. Where would we all be without git?
-
I'm learning git and i must confess that i've been thinking about use sourcetree gui to make my commits, may be i'll try it tomorrow6
-
why are Linux graphical git clients so crap? (as compared to TortoiseHg)
like GitKraken is the only OK one, but it lacks soo many features its nearly useless (bisect anyone?) + you need a commercial license
GitEye is the second non-shit one, but it regurarly stops working + its non-free
and it seems most git GUI clients force the name of the repo to be their parent dir. my parent dir for all web projects is www, so in both apps I have a long list of projects named www, unless I expand the projects sidebar to cover half of the screen to see the very very end of the path that petrays the actual project name in GitEye. In GitKraken I have to investigate the commit history to figure out if I have the right GitKraken with the right project open... talk about UX :D
so do most "git experts" just use git commit, git push and git pull on the command line and thats their whole world and the reason why they prefer git to mercurial (for all the many features they never use)?10 -
Nice man page, I quote:
$ git help whatchanged
'[...] The command is kept primarily for historical reasons; fingers of many people who learned Git long before git log was invented by reading Linux kernel mailing list are trained to type it. [...]' -
Why the fuck good git pushed my vendor folder, even though I have it in .gitignore?
That shit costed a huge amount of time... 😥13 -
me: I git your mom last night...repo was huge!
other dev: yah, i git it
me: Tried to download your mom, ran out of hard drive space.
other dev: fuck you
me: no, seriously: https://github.com/Demolishun/...1 -
The only way I can edit Puppet config files is by git. And the only way I can git pull/push/commit/etc is generating a ssh key with a private key and give my public key to my supervisor to the git server (wherever that may be).
Because I'm on Windows 10 and screwed up my installers, I completely forgot to backup my ssh keys before resetting it. FML2 -
Use
git branch --merged
to get, you guessed it, all the branches you have merged.
Use
git branch -d <branch-name>
To delete a branch if it has been merged (use -D for forced)
And Use,
git branch --merged | egrep - v "(^\*|master|dev)" | xargs git branch - d
To delete all the branches that you have merged (but not anything with master/dev in their names)
Sorry for the formatting, I don't know how coder formatting works on DR..4 -
Finally git started providing unlimited free private repos.
Hope it won't start adding story like FB groups 🤣5 -
User forked UnrealEngine on GitHub and gave write permission and subscribed everyone (~100K)
Thats not how you git it.
https://news.ycombinator.com/item/...
http://imgur.com/a/yVjAM -
Has anyone ever faced problems with VS Code Git GUI and git in terminal?
:/
I use the gui for some stuff and the terminal gets out of sync.
So it's like I have discarded changes from the gui and then WSL still says I have changes when changing branches, so I try to stash and it says there are no changes. It gets really frustrating.
😕4 -
Added new function to my Android app, tested for an hour. It was ok --> git push.
After some time the function doesn't work anymore... -
Had to help my buddy run a git workshop today and... He didn't git init and wondered why it wouldn't work..
-
After being here for some time already, it astounds me how many organizations still don't use git or any form of versioning tool.
-
I learnt more about git and how it goes about doing its stuff.. And decided to bestow that wisdom.upon the world..
https://linuxfromanoobie.wordpress.com/... -
Git was designed to be used in a decentralized fashion, and as such has a lot of additional logic steps to deal with this.
The way people use git today only with centralized storage such as github makes it a inferior solution compared to SVN6 -
on desktop:
to edit my post i have to copy it, delete it, add a new comment, paste it, correct it and post it..
i feel like i'm doing a git rebase on master1 -
"fatal: detected dubious ownership in repository" - if git finds no conflict, it will always find other ways to cause trouble4
-
When your pushing to a git repo and found so many conflicts and try to to review it,
And found so many conflicts with whitespace.1 -
ci tools in cooperation with git servers because i work on different machines and only one of them has the full development environment. (every other machine has only an editor (atom or vi) and git when it comes to dev tools)
-
Joined a new team and was presented with the statement
'We can't use git pull on our repo, we rebase, it works better than merge'?4 -
fucking muscle memory added a '^' to "git reset --hard head".
at least it gets faster when you have to write it a second time, but I lost about 20 files -
So funny when who people try and jump in IT related conversations saying “Ah yeah, ....xyz... I’m a programmer” do not know what Git is :)3
-
I set up my first git for my internship stuff. I just looked at it and it's so disorganized and weird
anyone know a tutorial for learning how to use git that I can do over the weekend???3 -
today, in one of my main projects, I did a
"git add ."
left the office 6 hours later. it was still adding.
fml.... -
If i have 2 branches on git
- main
- infra
You cannot push directly to main. It is forbidden. You can only merge to main
Now. Once i push to infra branch. Assuming all the shit went good pipeline passed tests passed etc. Then i merge it to main.
Now
Locally while im on infra branch. I have to pull latest changes from main otherwise ill fuck up everything and cause conflicts.
After trial and error i realized i just have to do:
git fetch
This fetches all shits from main (defaukt branch) into infra branch. And now it works. No rebase. No pull. Wtf?
Is this the correct way to do it?
Also i need someone to explain this to me like im 5:
- git pull
- git pull --rebase
- git fetch
What is the difference between those 3 commands? I tried googling and chatgpting but i cant seem to understand any explanation. Explain it to me in simple terms with examples15 -
When you go to sleep after a git push and wakes up next day to find out it asking for your credentials!
-
I have been keeping track of Todo's using markdown files and git. Love it. Any one else do it or ideas ?2
-
Git is overrated. There's absolutely no good reason that `git add` should be default to call before `git commit`, if people don't want files added that should be the exception not the rule. But where it all really falls apart is mono repos. There's no good way to make a repo inside a repo, which is fucking stupid. There's no good way to clone just a chunk of a repo, which is fucking stupid. And -- just in general -- every aspect of git feels like it wasn't designed to be usable. For instance: there should be a command `git save "message"` which does the default `git add ., git commit -m "message" git push`. Or rebasing, that doesn't need to be so hard at all.
This is just a rant and all, but I'm so tired of git being clunky and poorly designed from a UX perspective. And not supporting mono-repos for shit.13 -
Just discovered "git hours" (https://github.com/kimmobrunfeldt/...) and it's as simple as awesome! I'm gonna start using it in combination with RescueTime to check how accurate are my estimations... Any thoughts, suggestions or experiences on this, guys?
-
*Begins a java project in IntelliJ*
*Puts it on git without committing .idea folder*
*Suddenly finds out 26 libraries are needed so adds maven*
*Collaborators don't like maven*
*Battle on git between package names com.company.project and main.java.com.company.project* -
I messed up something with my git and now it opens git log everytime in vim, which i don't want. Is there any way I can just print it using less or cat and not open in vim?1
-
Almost all the company uses git, I even took a training about git and how does it integrate with internal tools.
In my team they use mercurial.
fml. -
Spend half an hour with the "git remote add ..." yada yada after setting up an git repo on a vps where I failed to create the home directory with the user and had to do it manually.
As I was against making a trash commit to win against the Schrödinger repo I begun torture myself with the PowerShell SSH compatibility.
I gave up at the end and made an commit with some libs I am going to use. After a last SSH port fight with git got everything up and running.
Lastly installed the new magical windows git credential manager and I am hoping to see some fairy dust in the next days.
Tl;Dr:
If(windows&&SSH&&git){
throw new EverythingWrongException("Git gud");
}1 -
I created a short tutorial about git merge and rebase. Hope that you will find it interesting! Any feedback is very welcome :) https://dev.to/lmtx1/...3
-
git commit -m "The test core dumps, I go home" && git push
(OpenSSL is like running a marathon: It's just some month away and you already forgot how much fucking pain it was. Nah, can't have been that bad. Shit, it is.) -
A person who just starting out ask me about git.
I explain what is "init" , "remote" , "add" , "committing" everything was going well until vim happen.
I just refer him to some beginner friendly tutorial about git and give him a link to git client tool.
How do you guy learn about git? When I stop to think about it git have lot of features.9 -
How does Git collaboration on a web text editor/web IDE works behind the scenes (like that of GitLab)? Do they shallow copy the git repo per user working on it and apply any operation (like branching, merging, rebasing) over that or how does that works?1
-
VPN -> SSH -> git clone -> git branch -> sshfs pull -> edit-> restart VPN/SSH every hour or so when it goes down -> sshfs push -> git commit -> git push -> fml
-
Did git go back to using “master” instead of the new “main” as its default branch name? Because when you create a new repo on GitHub now, they explicitly ask you to rename the branch to “main”. I checked by doing ‘git status’ on a newly initialized repository and it still shows “on branch master”.3
-
First boss introduced me to VCS., so I PUSHed my self --HARD was very COMMITed, but I still don't GIT it
-
Git, Mercurial and others are distributed version control systems. Maybe it would have a federated version control system for hosting open source software...
-
Is it my crappy connection or the git bash for windows is just shite? It's taking forever to clone onto a repo using ssh.8
-
I hate it when I accidentally gitlab my changes by running "git checkout ." instead of "git checkout master." It happens very infrequent when I decide to trust my shell history more than I need to.
-
I once blew up my git project by doing a find and replace string thru the command line. Long story short don't ever do it.
-
Git, GitLab CI, and Python's SetupTools are pain, hell, and they ruined my day. I can't get my project onto PyPI because it constantly errors out. Ugh.3
-
I'm almost ashamed to ask this but...
I need help with git, not GitHub but just plain git.
So I have Linux on windows because I realised all i need is bash, not all of Linux. So I'm taking a tutorial on git because... I'm a programmer, I need to know this. So I am also doing some demo stuff on my own and... I have no clue where to put the file I want to handle with git. In pretty sure I should put it in the file containing the .git folder, which includes .bash_history, etc. But when I git init and git status, it doesn't see it, so am i doing something wrong?
To be specific the test file is in
C:///Users/...6 -
GitHub: merge conflict in the readme document.
Me: I don’t care just skip it
GitHub: no go just use git to fix it
Me: I DONT WANT TO? CAN YOU JUST ADD SKIP IT OK11 -
this afternoon, we got email from our pentester. He said that he got some security vulnerability in our project. He found .git/ folder in project directory in production server. He considered it as security vulnerability because user can see all git branch on remote repo. He recommend us to remove that folder but the problem is, we using CI/CD so we need that .git/ folder. My question is it bad practice to use git on production server?10
-
!rant
So, why is everybody's answer for a windows based git server bit bucket, but Linux does it naturally? -
I don't know much programming languages. I know some but I am not good at them. Going through the post here I came to know about VCS and git. I learned it, now I know git however I have nothing to implement that knowledge on as I know very few language.2