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. […]
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” […]
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?
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 […]
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 […]
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 […]
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 […]
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 […]
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.
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: .#make_collections.py # new file: .#norm_collections.py # new file: make_collections.py # new file: norm_collections.py even though \.\#.* is clearly getting the right file names and not the wrong […]