Tag: github

How do I make git understand that its “push” has failed? Git push failed. Cannot add files to a commit now.

I want to re-add, re-commit, and re-push everything. Git thinks it’s pushed out to the remote repository, but somehow it failed. Below are the steps I’ve gone through and the results. 0. create remote git repository in github.com 1. git init In my working directory git add . git remote add origin https://github.com/me/myfiles git push […]

Unable to push changes to remote repository with multiple users

I have set up git successfully and pushed my project to remote repository. I had already setup my global user.name and user.email by executing following: git config –global user.name ‘user1’ git config –global user.email ‘user1@example.com’ Now I have another repository for which I needed a different user, so I created another user specific to that […]

Migrating repositories into Github from Stash/Gitlab

I have repositories hosted in Stash and Gitlab but would like to consolidate them to Github. I am clear on how to move the the Git repositories themselves using git clone –bare and git push –mirror. My question is about preserving the additional info related to these repos (e.g. pull requests, user permissions, hooks) to […]

What does 'Checking out files' stat indicate while switching to master branch in Git world?

I am using git bash. I created a brand new local git repository from a brand new public repository ( means it just had .gitIgnore file. no code) I branched off from my local master repository to a new repository ‘FromClearcase’ using: git branch FromClearcase git checkout FromClearcase I pasted 49 files of code into […]

What is a recommended way to manage git patch queues in unrelated repositories

So, I have many repositories I need to manage patchsets in git. I primarily work on what I’ll call issue-branches (Unsure if thats an official terminology for git, but its short-lived branches for each issue). I do have a habit of rebasing if they end up taking longer to iron out, or even squashing if […]

Git stuck on writing Objects 33% then “Killed by signal 2”

git push origin master Counting objects: 41, done. Delta compression using up to 8 threads. Compressing objects: 100% (20/20), done. Writing objects: 33% (11/33), 1.30 MiB | 14.00 KiB/s There is gets stuck and I have to do: ^C Killed by signal 2. I can push other repos to github, but not this one. My […]

I created a new node project and package.json did not upload to Git

I did the following npm init Then I added it to my Repository. By git status git add . git commit -m “Initial Commit” git push origin master Now I visit my repo and my package.json is NOT there. Am I doing something wrong? I have a gitignore it looks like the following # Logs […]

Building multiple github repositories at once

I have a multi module SVN project where the complete parent project takes around 2+ hours to build. I have many sub-modules which can be built separately. project-parent -project-a -project-b -project-c -pom.xml This means that I can either build project-parent as a whole, or the 3 sub-modules separately. We are moving this project to Github. […]

Git 'pack-objects died of signal 13' when pushing to origin

Whenever I work on a branch other than master and try to push to that branch I get this error: User-MacBook-Pro:htdocs user$ git push origin quotes Counting objects: 2494, done. Delta compression using up to 4 threads. Compressing objects: 100% (2246/2246), done. Write failed: Broken pipe9/2455) fatal: The remote end hung up unexpectedly error: pack-objects […]

Multiple GitHub Sessions Open With R Studio

Every time I open R Studio, GitHub will also open–only it will open 3 sessions/windows. Within R Studio, when I change project options for a project tied to Git Version Control, the same thing happens. I can have 9 instances of the GitHub application open on my computer screen at the same time. Inevitably, some […]

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