errors while committing the repository in sourcetree, Git window client

I am new to bitbucket, git and sourcetree. i created a repository on bitbucket, then i installed the sourcetree client for win 7, then i clone that repository with my local desktop folder, then i placed a file in the local folder, now when i try to commit the changes, sourcetree give me following errors. […]

Team Explorer + Visual Studio Online + Git out of sync

After we move from TFS VC to Git as the repository on our VSO subscription, we got the following cenario. From a given remote repository on VSO named “RepoA“, after the initial clone, it presents on team explorer to me the “main” branch for this repo. Then I created a branch “myBranch” from the “main” […]

How to list unpushed Git tags

I’d like to see which tags I have locally that aren’t available on a particular remote. How can I do this? I know I can do git push –tags to push all of them. However, if there are some tags that I don’t want pushed, how to I make sure I haven’t missed some?

Making my own framework and using it as an upstream for projects

I’m a freelancer making websites for clients. I have my own devstack based on React and Node. Currently, when I’m developing a new site, I just copy the last project that I’ve programmed and modify routes, pages and so on. When I add some new functionality (update webpack 1 to 2 and so on), I […]

Git – rollback to a previous commit

I committed my work (note not pushed) in a known good state. I have since made unwanted local changes (without committing or pushing them). What is the command to undo these changes and revert to my previous commit state? Please accept my apologies for the beginner question but the suggestions turned up by my googling […]

django migrations – workflow with multiple dev branches

I’m curious how other django developers manage multiple code branches (in git for instance) with migrations. My problem is as follows: – we have multiple feature branches in git, some of them with django migrations (some of them altering fields, or removing them altogether) – when I switch branches (with git checkout some_other_branch) the database […]

First time using node.js – “ReferenceError: node is not defined”

I just installed node.js. I tried writing node -v that should check the version – and it’s not working. this is the output: > node -v ReferenceError: node is not defined at repl:1:2 at REPLServer.self.eval (repl.js:110:21) at Interface.<anonymous> (repl.js:239:12) at Interface.emit (events.js:95:17) at Interface._onLine (readline.js:202:10) at Interface._line (readline.js:531:8) at Interface._ttyWrite (readline.js:760:14) at ReadStream.onkeypress (readline.js:99:10) at […]

How can I translate trunk/branch concepts from Subversion to Git?

So I am not much of a source control expert, I’ve used Subversion for projects in the past. I have to use Git for a particular project (client supplied Git repo). My workflow is as such that I will be working on the files from two different computers, and often I need to check in […]

How to use git format-patch on initial commit

I need to get patch file for inital commit (which is not empty) for our review process, but I’m confused as git format-patch command only makes it from branch that is on initial commit not including it. Seems it must be some obvious move but I’m completely missing it.

.gitignore regex for emacs temporary files

I’m trying to .gitignore emacs temporary/autosave files. I’m using… \.\#.* in my .gitignore. But git add -A run in a subfolder is still giving me: # new file: # new file: # new file: # new file: even though \.\#.* is clearly getting the right file names and not the wrong […]

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