Tag: master

Vapor: git push heroku master is failing

I’ve been working with Vapor and Heroku for a few weeks now and it is all going well. Vapor is fab! ;] I have been successfully updating the app on Heroku using git push heroku master until yesterday evening when I started to get this error: $ git push heroku master Counting objects: 26, done. […]

Cannot push to remote repository (git)

I don’t know if it’s just me, but I find the process of interacting with remote repositories of Git via command line utterly frustrating. I have generated my own SSH key, added it to my GitLab account. And I have the same key saved, just checked to be sure. And yet, if I try to: […]

How to work with current working copy when moving to old branch in GIT?

I have a question concerning best practice in GIT. Imagine I create a branch called hotfixes and I add some fixes to it and then merge the branch with the master. Then I create a few other branches and merge them with the master. After a few weeks I realize I need to add some […]

Git- made changes on a local branch, checked out master, and master is now broken

I am working on a Python/ Django project, using Git to manage my version control. I recently made some changes on a branch called conceptCalendar3, and the changes I made broke my site. I committed the changes to that branch, and then checked out master, which, I had branched from in order to create the […]

Heroku push rejected, failed to compile Ruby/disabledeploys app

I was invited as a collaborator to a Rails app deployed in Heroku. I cloned the app, made a few changes and then committed to git and tried to push to Heroku but I am getting that error message. Any ideas about this “Ruby/disabledeploys app”? I already tried to google about it but had no […]

Contaminated Remote master branch or Anti-Cherry-Pick

I have a situation where the remote repository has some “bad” commits. e.g. … o —- C —- A —- B origin/master Where A is bad (but B is good) I want the remote to become… … o —- C —- B origin/master \ A origin/dev It is not obvious to me how to do […]

Github branch is ahead by 5 commits, how to fix?

Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved. C:\Users\Allen\Documents\GitHub\project2-pd7 [master]> git status # On branch master # Your branch is ahead of ‘origin/master’ by 5 commits. # nothing to commit, working directory clean C:\Users\Allen\Documents\GitHub\project2-pd7 [master]> git push Counting objects: 36, done. Delta compression using up to 4 threads. Compressing objects: 100% (15/15), done. […]

Git: How to revert a force push

Is it possible to revert my master branch to its initial state if I did a force push on the server with a code that was not up to date? I tried reflog command but it is not working as it keeps track to the local commits only. Thanks

git clean does not clean unwanted folder

I have a .NET solution which, after switching back to master branch, leaves a project folder behind. I want to clean this folder up (there is nothing but bin and obj folders inside, with some old dll’s) so I tried git clean -f -d. This did not work. I checked which files are being tracked […]

git push to remote repo, but seems nothing is uploaded on repo

I’m on mac and trying “git push” to a local repo simulator directory: mkdir ~/gitremote cd ~/gitremote git init –bare Then in another directory: git clone /Users/trosky/gitremote vi readme (add one line) git add . git commit -m “1st file” git push -u origin master Counting objects: 2, done. Writing objects: 100% (2/2), 211 bytes […]

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