What does “Changes not staged for commit” mean

I thought if you want to track the files you should git add [files you want to track] I don’t know why I got the messages Changes not staged for commit. If those files were not staged, shouldn’t git shows me those files were Untracked like that All I’ve done was create a new feature […]

Composer – Requested Package exists as but these are rejected by your constraint

Today I got a strange error within a composer updatewhich I can’t describe myself. { “repositories”: { “my-plugin”: { “type”: “vcs”, “url”: “git@mycodebase.com:mjplug/myplugin.git” } }, “require”: { “my-plugin/myplugin”: “0.0.9”, } } When I try composer update then I’ll get The requested package my-plugin/my-plugin 0.0.9 exists as my-plugin/my-plugin[0.0.6, 0.0.5] but these are rejected by your constraint. […]

Gradle script to autoversion and include the commit hash in Android

I need to write a gradle script to auto version my application on every commit. I need to also include the commit hash as a reference in the application for testers. I am confused how auto versioning usually work. Can someone explain the autoversioning process? thanks

How to show git commit using number of commits since a tag

With git describe you can get the number of commits since the last tag. If you only had the tag and the number of commits what is the best way to show the commit that was described? I know you could use git log tag.. and pipe it to a a script that does the […]

remove deleted commit that references an issue

I amended a commit a few times and did push –force each time (stupid mistake; I didn’t realize until getting ready to send a PR that my editor had generated tons of noise by fixing tabs and trailing whitespace). The commits that I thought were no longer existent are still reachable on GitHub, and the […]

Compare old and new versions of force-pushed pull request

Frequently, my colleagues will make some changes to an open pull request, rebase their local branch against the base branch – often squashing their changes into previous commits as well – and force-push. How can I see what changed between the old version of the PR and the new version of the PR? I guess […]

How to make git ignore a sub directory group with gitignore pattern?

I’ve a directory projects/ in root directory. the root directory is added to git. in projects I’ve several subdirectories. But I want to track only projects/admin not projects/x nor projects/y. What ignore rule I need to write in .gitignore ?

What's the difference between “git add -u” and “git add -A”?

Okay, so I was searching “How to Remove Manually Deleted files from Git” without actually doing git rm file.txt for each file when I came across “Removing multiple files from a Git repo that have already been deleted from disk”. The two most Up-Voted commands were: git add -u git add -A Although both of […]

How to force the update of a gem with bundler?

I have a private git hosting a gem we developed. The gem got some commits, but the version did not actually changed. How can I force bundler to update my gem even if the version hasn’t changed? I tried “bundler update mygemname” but it did not update anything. Thanks

GitHub: A tag but not a release

I want to tag a certain commit. When I push the tag, GitHub assumes it’s a release, I don’t want that. Is there a way to just push the tag without releasing?

Git Baby is a git and github fan, let's start git clone.