FAQ Database Discussion Community


Where is git command after installing “GitHub for Windows”? [closed]

windows,git,powershell,github,github-for-windows
After installing GitHub for Windows, I can use git command in Powershell directly: C:\Users\xiaona\Documents\GitHub> git usage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>] The most commonly used git commands are: add Add file contents to the index bisect...

Mount Github link as docker volume

github,docker,bitbucket
Is there any way to mount github or other repo's http link as docker volumes, so that when I start my docker container, it would be running with the new code which I've pushed to github or bitbucket ?

git fatal error when pushing md file to Github

github,push,fatal-error
This is driving me crazy. I'm running git on mac osx 10.10.3 I keep getting "does not appear to be a git repository" message when trying to upload an MD file to github, here's what I get: git push origin master fatal: 'github.com/bbenavides/datasciencecoursera.git' does not appear to be a git...

How do I create my own Git branch to work on?

git,github
My goal - to branch of from our development branch to be able to work on it separately. I was quickly shown how to do this as: Open git shell or powershell/cmd and navigate to the folder where the project resides. Run "git branch (desiredNameForMyBranch)". From what I understand this...

Trying to make an alias for an .exe - Powershell saying it cannot resolve the alias

powershell,github,powershell-v1.0
Some backgroudn: I'm learning GitHub through the Udacity "How to Use Git and GitHub" class. They tell me I need to use Command Line, not Windows' native command prompt. I've installed GitHub, which appears to install Git Shell which runs Powershell. I want to create a shortcut to run Notepad++,...

How to use Library from GitHub in android App

android,github,gradle,libraries
I downloaded this library to use in my app, however, I can't get Android Studio to do the gradle build now. Anytime I try, I get "error:configuration with name 'default' not found". I've tried several other StackOverflow answers, but I still can't compile. My dependencies (from build.gradle Module: app) dependencies...

Updating a Project on GitHub Without Having Git Installed

git,github
My GitHub repository is sinked with my personal laptop. I am working on some projects at work and want to add them to GitHub. My work PC does not have Git installed (and cannot have it installed). I added a work project to my GitHub account manually by creating a...

Get result of merging a PR while it is already merged

git,github,merge,refs
For a PR with number 1 GitHub automatically creates a ref refs/pulls/1/head and refs/pulls/1/merge. The latter contains the result of the merge and is especially useful for e.g. CI (because what you want to test is actually the result of the merge). After merging a PR, the refs/pulls/<number>/merge is no...

Local Git Hook Pre-Commit/Pre-Push does not run (Windows)

git,powershell,github,githooks,pre-commit-hook
I have a repo set up which is supposed to run a fairly simple pre-push/pre-commit powershell script (It doesn't really matter when the script executes). However, for the life of me I cannot get it to run. I have tried to use chmod +x .git/hooks/* and chmod ug+x .git/hooks/* I...

How to push local git repo to remote branch?

git,github
I have got new design project in localhost and I have gotten github account with old design. I want to upload it to new branch. I create new branch with web interface on the github "new-design". I create local git repo: #git init I add the remote repo: #git remote...

How to point branch to master after rebase complete

git,github
I am not very much clear about git rebase workflow, I try my self to rebase two different branches as mention below. But I am not able to update my branch to where master is pointing after rebase completed. Below are the steps which I performed git clone https://github.com/myadmin/testrepo.git git...

Restore local master after making commits on it

git,github,branch,restore,master
I have cloned a project from github. When I started to develop a new requirement, I forgot to make a new branch and I modified the code on my local master instead in a new branch. Now, I need to restore my local master, I mean, getting the same remote...

error CS1729: The type `ARSoft.Tools.Net.Dns.DnsServer' does not contain a constructor that takes `4' arguments

c#,github,visual-studio-2013,dns,syntax-error
I'm trying to compile a code taken from github. My understanding of Visual Studio or C# is pretty basic. Can anybody please help me with the error? Github source: github.com/slothbag/NxtHypeDns Source file link: github.com/slothbag/NxtHypeDns/blob/master/NxtHypeDns/Program.cs Error screenshot: http://i.imgur.com/KE8En7s.jpg Thanks...

Git check compare is slow

git,github,zip
I am currently working on a project that has a directory with a lot of small files within it that don't change. I know that I can add it to the git ignore but I still want them in my repo. Will zipping the directory shorten the time it takes...

Advantages/disadvantages to branches and forks

git,github,git-branch,git-fork
I am currently working on a project via a fork of the main repo. I am committing my changes to <fork>/master and then submitting pull requests to <upstream>/master. I have write permission for <upstream>. Am I correct in thinking that I could make this simpler by deleting my fork and...

Contributing to open source project on github

git,github
I want to add translation and a bugfix on open source project on github. I had installed git, forked the project, cloned the fork on my harddrive, changed the permissions of the file(needed to do so I can test the changes), then created a new branch called "Bulgarian_language", then added...

Python - Resolving PEP8 errors

python,github,pep8
I'm trying to resolve PEP8 errors that were generated by a Travis build after a pull request to the Firefox UI GitHub repo. I've been able to reproduce these errors locally using the pep8 library. Specifically I have the following line in a file which exceeds the 99 character limit:...

I need git to include the parent directory

git,github
I have a program divided into 3 packages. I have set up a local repo in one of the packages and set it up to push to a repo on gitHub. I have started work on the second package and I realized I haven't initialized it with git. I wanted...

How to include a commit in a tag after the tag was already created

git,github,git-tag
I had tagged my branch for release and then another commit was made that needs to be included in the tag. How can I do that ? What are the steps? Can someone explain please ?...

GitHub release asset download with node.js

node.js,github,github-api,nw.js
I want to write an auto downloader in Node.js using the http.get method from a GitHub release using the API and and i receive 302 error. What can i do?

rebasing interactively, but only one commit shows up?

git,github
I'm working on a feature branch and made a commit earlier and pushed it to my fork. Now I realized I should have done something in addition, so I made another change and committed it. At this point I'd like to do an interactive rebase and squash those two commits...

Trying to understand git upstream branch

git,github,version-control
I have a git project. The remote only have a master branch, at local I have a master and proj-structure branch. I created the proj-structure branch using 'git branch -b proj-structure'. I am currently at proj-structure branch at local, when I try to git push, the git suggests me to...

Git rebase original project

git,github,rebase
I have forked a project. I am the sole maintainer. Now the original project has changed its master branch. Can I merge those changes in my development branch or in both my master and development branch? I read about rebase but I'm not sure that's how it should be done...

How To Add Files Inside Folder, Not The Folder Itself

git,github
If you're like me and you like folders to hold the contents for branches on GitHub, to look neat and tidy on Windows (or Linux/Mac whatever): e.g. github -> project -> .git -> gh-pages -> index.html -> assets -> main.css -> main.js -> jQuery.js -> dev -> master If you...

Merge Pull Request Manually

git,github
So I have following situation in github. 1) I created a fresh branch from the mainbranch and named as userstory1 2) I pushed my changes in branch userstory1 and raised a pull request to my colleague 3) He saw that folder structure was not correct so renamed my code folder...

Latex \newcommand in kramdown

github,latex,jekyll,kramdown
I understand that cramdown does not support \newcommand type macros. Is there a workaround that does not involve Pandoc, so that it could be used with Jekyll in a GitHub blog? This would be the input markdown: --- layout: post --- \newcommand{\a}{\alpha} This is a test $$\a$$. The output should...

Best practice for structuring git branches

git,github
Ok, so I am starting to get really confused about my mess of git branches. Some background: I have my main, official repo at simplare/stoffi-web and my personal fork over at ephracis/stoffi-web. I usually do a feature branch, work on it, do a pull request back to simplare and then...

See previous commit in Github

git,github
After searching my git log for an old commit, I take its full hash paste it into my browser as https://github.com/my_repo/commit/hash and so I can see that commit in Github. Now I want to see the previous commit in Github, but I can't find a way to navigate into it....

Github: Permission denied (publickey) but I got “You've successfully authenticated” message

git,github,ssh
Step I had done: https://help.github.com/articles/generating-ssh-keys/ follow exactly. $ eval "$(ssh-agent -s)" Agent pid 31944 $ ssh-add Enter passphrase for /home/centos7/.ssh/id_rsa: Identity added: /home/centos7/.ssh/id_rsa (/home/centos7/.ssh/id_rsa) $ ssh-add -l 4096 ab:4d:23:23:99:ce:bb:9d:9f:9e:f9:b2:c8:1a:cd:f7 /home/centos7/.ssh/id_rsa (RSA) However, when I run $ git clone [email protected]:privateRepo/repo.git Cloning into 'repo'... The authenticity of host 'github.com (192.30.252.130)' can't be...

How to diff two local repositories

git,github
I have two repos that I've downloaded to my local machine (as .zip files that I unzipped) that are in separate folders. The contents are virtually the same, but there are thousands of files in them. Is it possible to use Git to compare across them and find those minute...

Git diff cached does nothing

git,github
Here is where I'm at: Created a new repo on GitHub Initialized (git add .) my working directory locally on my PC commited (git commit -m) all changes to stage Made another change by adding a new .png file Did another git commit -m Now I want to see a...

How to release binaries on Github for different plattforms as seperate downloads?

git,github,command-line,software-distribution
I found this at github https://github.com/blog/1547-release-your-software. Their page provide a way to attach binaries to a special release. My build script compiles binaries for Windows MacOS and Linux. How to supply seperate downloads for different platforms there? AS far I can see these releases are simple git tags. Is it...

How to ignore the contents of a previously tracked directory in git?

git,github,gitignore
I have seen this post about no longer tracking a previously tracked file, but here is my situation. I previously committed a directory. I now want to untrack everything in that directory but still track the directory itself. I have added /auto-save-list/* to the .gitignore file (the directory I am...

What does a red text-background mean in GitHub comparison view?

github,diff
I created a pull request and was browsing through, the differences are shown with light red/green line-brackgrounds, but some text is bolded with a red text background... Update: Image changed to show file with some highlighted comments and some not. What does this mean?...

git commit process somehow broken

git,github
First, git/GitHub are largely black boxes to me--I only know how to do very simple things, so it's likely the answer to this is simple. I was playing around today and realized I had a file in my repository that I didn't want publicly available, so I did all I...

How to change a connection to Github from SSH to HTTPS?

git,github,ssh,https,git-remote
I created my first repository in Github yesterday. When making the connection I used SSH instead of https, so I went through a little painful SSH key creation and connection process. At some point I got stuck and the connection failed. I wondered at that moment how I could revert...

Pull request within one project/branch?

git,github
Suppose C(=Coder) and S(=Supervisor) are working on a project. For some reasons S never contributes to the codes and just comments on the code. Instead C is the only person coding. Is it possible to send pull request by C to be reviewed by S, within one project, or they...

How to create a paypal form display in github README

github,markdown
What I am trying to do is, Display the paypal donation form into github project README.md file Using the html markdown display it as html rather than rendering the button with form. HTML // here goes the html of the paypal form any thoughts ?...

How to copy only one file from a GitHub repository to local machine?

git,github
I have a repository on GitHub which has the code of a project that I am working on. While working, I deleted a file from my local machine. So, now I want to copy the file from my GitHub repository to my local machine. Initially I thought I should clone...

Keep config file secure using github and Elastic Beanstalk?

amazon-web-services,github,passwords,config,elastic-beanstalk
I am using github (public) to keep track of my web app and about to deploy it to Elastic Beanstalk. Is there a good way to keep my config file secure which has RDS username/password? I have to add the file to git in order to push it to Elastic...

.gitignore File Not Working With Bonobo

git,visual-studio,github,bonobo
I set up a Bonobo Git server in IIS and have it working on my local computer. However, the .gitignore file is not working. I'm using the GitHub Windows client and this ignore file. I want the bin and obj folders ignored, but they are showing up as changed folders...

How to quickly format programming codes in the GitHub's Issue?

github
If I create an issue with some codes in the gitHub, how to format it? I have to add more white spaces again and again...... Is there anything like what we can see in the StackOverFlow by clicking "Code Sample" button?...

How to make git recognize that I deleted a file? [duplicate]

git,github
This question already has an answer here: Github file size limit changed 6/18/13. Can't push now 4 answers I am getting this error, File bigFile.txt is 125.61 MB; this exceeds GitHub's file size limit of 100.00 MB This was after adding, committing, and trying to push. I went ahead...

Link to download latest version tag of a repository from GitHub

github,github-api
I want to make download link for latest version of my application from GitHub tags. But I can not use GitHub releases, only just tags to make the new version. So I want an universal link to the latest tag zipball. I already did that with jQuery and GitHub API,...

How to load the project into Github

node.js,github,bower
I need to load my project into Github. So I use GitHub for windows to do it, and I have a problem, when I do it, GitHub writes me "Commit is failed". My project uses bower and nodeJS, and I understand that problems is about it, cause I download pure...

git fork from certain tag version - requirements.txt

django,git,github
I want to fork one github project code, but not from master branch, but from older release. Reason: I want to edit one place in the code in my fork version and put the url of this tag version into my requirements.txt so that pip install -e git+https://git_url_to_my_form_in_this_tag_version works. I...

Move git configuration from Windows to Ubuntu

git,ubuntu,github,ssh-keys
I recently started using git on windows 7 and configured everything to access Github, Bitbucket and a private server over ssh. Now I am switching to Ubuntu OS and I am not sure how to copy the keys and configuration settings over to Ubuntu. Will you please help me out...

What should I do if I put MS Office (e.g. .docx) or OpenOffice( e.g. .odt) document into a git repository?

git,github
I put several .docx, .txt and .pdf file into a .git repository. I can open, edit, save the local .docx file; however, when I push it to github, and download it back to my computer, Word complains that it cannot open it. In order to store .docx file on github,...

Starring a repository with the github API

github,put,github-api
I'm trying to star a repository using the GithubAPI. This is done via a PUT request to /user/starred/:owner/:repo. I attempted to implement this feature in python using the requests library, but it isn't working. Here is a minimum working example: The constant are defined as GITHUB_API = api.github.com, GITHUB_USER =...

I have deleted my project.pbxproj file using git checkout — . Should I delete the branch locally and pull from origin?

xcode,git,github,version-control
I have gotten myself into some hot water regarding source control. I had just gotten a feature branch to work that another developer on my team had created and developed, which required adding some files. He then added some additional code to the project, and I wanted to revert to...

A new git project from a branch?

git,github
I have a project on Github and I started a slightly different version of it on another branch. I want now to separate that branch into a separate project, which could be synchronized with the original project, so when I make some changes in the original project, i could also...

GitHub API returned Url meaning

git,api,url,github,github-api
Take this very simple API as example, https://api.github.com/users/zhuhuihuihui In the JSON formatted response, you'll find something like following, "following_url":"https://api.github.com/users/zhuhuihuihui/following{/other_user}", "gists_url": "https://api.github.com/users/zhuhuihuihui/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhuhuihuihui/starred{/owner}{/repo}", Ok, I know like the following_url, starred_url is something like a sub API which you can call to fetch who that user are following, or what repos...

How can I hide sensitive data before commiting to GitHub (or any other Git repo)? [closed]

python,git,github
I'm creating a code to demonstrate how to consume a REST service in Python, but I don't want my API keys to be visible to people when I push my changes to GitHub. How can I hide such information?

TeamCity checkout GitHub repo to specific absolute path

github,path,teamcity,git-checkout
My TeamCity VCS Root step needs to checkout a specific GitHub repo to a specific absolute folder on the agent ( Windows server ) : c:\github\{organization}\{repo} I'm not understanding how to construct my checkout rule to do this. By default, checkout rules are relative to the checkout dir which is...

From development to deployment with Git

git,laravel,github,gitlab
I am very puzzled. I have read many sources about 'development & deploy' with git and haven't understand anything. Now I have: Local (Development) repository with project (git init) Gitlab/Github Server where I store/commit/push my project. Production server With local repository and gitlab/github server is all clear. I make changes...

Can git ever send your code to a repo that isn't yours?

git,github,git-commit,git-add,git-init
Can running git add . git commit -m "message" in a git repo which you've initialized using git init ever result in your code being sent to a repo that is not yours? I am concerned because I did this while not logged in to my git hub account....

Tools for Apache Cordova - Installed Plugins are skipped in build

cordova,github,git-branch,visual-studio-2015,visual-studio-cordova
i have a cordova app with 6 plugins and the strange behavior that app is not working after i create a new clone of the sources from github. If i install a plugin over the config.xml dialog and build the android version of the app. The native source file (*.java)...

Creating new branch in github but it isn't current?

ios,xcode,git,github,branch
I created a new branch in github for the 2nd part of my project. However, when I am on it, my xcode project reverts to an old version (not up do date with last branch) clarification: branch checkpoint-19 created new branch called checkpoint-20 when on checkpoint-20, the project I am...

how to clone GitHub repo locally via libgit2sharp?

git,github,git-clone,libgit2sharp,repo
I wrote code to programmatically clone a GitHub private repo to a local repo via libgit2sharp ( v0.21.0.176 ) var cloneOptions = new CloneOptions { BranchName = "master", Checkout = true }; var cloneResult = Repository.Clone( @"https://github.com/my-organization/my-repo.git", @"c:\github\my-organization\my-repo" ); exception thrown : {LibGit2Sharp.LibGit2SharpException: Request failed with status code: 401 at...

My .gitignore file is not working

git,github
I've been trying everything I can think of and I've read all the StackOverflow posts about this issues, yet I can't seem to fix it. The issue here is that I 1. created a repo (test) , which git is tracking 2. Inside my test folder, I have a .gitignore...

Git - coworker somehow overwrote my entire commit while resolving a conflict

git,github,git-merge,merge-conflict-resolution,git-cherry-pick
This is what he says he did: There was a merge conflict so I chose mine. What I'm seeing is that my changes are totally gone. The commit is there, but if I go on GitHub and click 'history' for the file, there's nothing showing that my changes were ever...

how to update my github library with an existing fork?

github
my friend forked my library and worked on it, but the old version appears on my Github page. Now can I show the new master? ...

Push changes to branch github

git,github
I have a project with three branches. I've made changes to the project,but when I try to update my branch (alexander), nothing happens online. It only says Everything up-to-date. I tried git add ., git commit and git push and nothing happend. So how can I update my branch? Here...

write puppet config to clone github repo

windows,git,github,puppet,git-clone
PuppetMaster on Linux target = Windows Server I've written a Puppet module to install Git on Windows Is it possible to write a Puppet config to clone a GitHub repo using purely declarative language ( i.e. without a script written in Ruby or other lang ) ? This is a...

git branch - local or what?

git,github
I ran the following commands: (we have a staging branch called "master_next") (1) git fetch origin (2) git checkout -b origin/master_next now, when I run (3) git branch I see some weird stuff. Instead of seeing master master_next I see master origin/master_next why is the branch I just checked out...

How does initializing a repository with a README help in letting you immediately clone the repository to your computer?

git,github
How are they connected in any way?

choose authentication for git pull

git,github
I want to add a second form of authentication to a github remote. Here is the situation : I have ssh access to a shared server In the server, there is a git repository, with a github remote. If I run git pull, it asks for a passphrase that I...

How to pull files and only override conflicts

git,github
How can I pull down a git and have it overwrite my local project ONLY where conflicts are found? E.g. I have many folders / files in my local project that are not on the git project and never will be. Ok... here is the full scenario. I used DaftMonk...

Git tag name as version in Go via Travis-CI

github,go,makefile,travis-ci
Essentially what I want to do is embed the git tag name (from a github release) to a version string within my GO code. If I use this code; package main import ( "flag" "fmt" ) var version string func main() { var verFlag bool flag.BoolVar(&verFlag, "version", false, "Returns the...

can I display asciidoc document in github?

github,asciidoc
Am I able to display an asciidoc file on github in the same way that I can currently view a markdown file? According to this blog entry, I should be able to do this: If you’re interested in using AsciiDoc, head over to GitHub and create a new file in...

How to deal with forked gems and bundle

ruby-on-rails,git,github,gem,bundler
I've forked a gem and it is hosted on Github. Then, in Gemfile this is what I've got: gem 'mongoid-scroll', git: 'https://github.com/bgvo/mongoid-scroll.git' Whenever I make changes to the gem using Pry gem-opem command, changes are saved under the following directory: /Users/borjagvo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/ruby/2.1.0/bundler/gems/ Some things confuse me: 1) In this directory there...

How much should I rebase interactively? [closed]

git,github,translation,git-fork,rebasing
I would like to translate a larger book hosted at Github. The orignal repo would be forked by me and I'll usually do my work on my own at a new branch. So nobody would really care about a changed history while rebasing interactively. Sometimes a lot of commits only...

error: pathspec 'test-branch' did not match any file(s) known to git

git,github,git-checkout,git-fork
I am a new user of Git. I have forked a repository called Spoon-Knife (available for practicing forking with Git). Then, I cloned it locally by running git clone https://github.com/rohinichoudhary/Spoon-Knife.git This repository contains three branches, i.e. master, test-branch, change-the-title. When I run git branch, it only shows *master, not the...

Associate git repo with existing fork network

git,github,git-fork
Using GitHub Enterprise, I forked a private repo. I then made the upstream repo public, which broke the 'fork' relationship between the public upstream and my private personal fork (as noted here). I've now also made my copy of the repo public. As far as I can tell, I can...

Get list of changed files from remote server git

git,svn,github
Is there a hook that gives the file name as soon as someone commits their change and merges with master from remote server? . I basically want to get a trigger that someone has updated a file on remote repo. Details like what file has been changed.

Edit comments next to each file/directory

git,github
How can I edit those comments next to each file or directory? I can't find anything relevant when searching online. ...

Using GitHub API to determine if the last commit to master was a result of a merged pull request?

github,github-api
We use GitHub flow as branching strategy which means that anything in master is the result of a merged pull request. It's trivial to get the last commit by doing the following. GET https://api.github.com/repos/:org/:repo/git/refs/heads/master However it seems non-trivial to work out the pull request that caused this commit. Is it...

Messed up a merge when trying to upgrade my Laravel application

git,laravel,github,merge
I have an existing laravel project which used an older version of Laravel 5.1. I wanted to upgrade my project to use Laravel 5.1.2. I followed this tutorial. So I added the laravel/laravel github repository into my git project as a remote called laravel, fetched it, then I created a...

Ownership on github and how to unfork a repository?

git,github,github-for-windows,github-for-mac
I have some questions about Github repository. 1) How to check the ownership on forked repository. 2) How to unfork a repository from my account (without deleting it from others account. I forked it recently into my account) 3) How to add users into my repository. I tried to check...

Fix git branch after another developer did a reset

git,github
We 2 developers are working on a branch. I did 2 commits, and pushed them, and we later decided we didn't want them anymore. I did git reset -i <sha> to the sha before the 2 commits, and then force pushed it to the branch on github. The other developer...

How do I put my index.html in the same folder as my other .html files on github?

html,css,github
So I just started web development an began building my portfolio. Although most of my content is on the same page and most links redirect to different websites, I do have one link that redirects to a different page of my website. So the content changes but the navigation bar...

Github: forking loop

git,github,forking
I'm still very new to coding and Github and as such am a little confused with how forking repos works - so please forgive what may be a basic question. I've been working on a project with different pair partners all week and my current code base situation is as...

Deploy closed source aar maven repo to github

android,git,maven,github,gradle
I am using the following guide to publish a closed source aar as maven repo on github: http://andydyer.org/blog/2014/10/05/hosting-android-dependencies-on-github/ The github repo I am publishing to: https://github.com/tabishfayyaz/test-sdk In my gradle.build file I have: repositories { maven { url "https://github.com/tabishfayyaz/test-sdk/blob/master" } } dependencies { compile 'com.adscendmedia.sdk:adscendmedia:1.0.1' } However Android studio results in...

Git will not push up everything in assets (Unity 5)

git,github,unity3d
I've just started a unity project with one of my friends for some fun and decided to use git to collaborate. I created the project on my computer and pushed it. Everything seems to be working except for nothing from my assets folder (but the scene) is getting pushed to...

Git submodule fail because of link to unexisting revision

git,github,git-submodules
I've got a problem with git submodules pull: I have two reporistories, let's call them repo A and repo B. Repo B is a submodule of repo A, so I added repo B as a submodule of A with this command line: git submodule add [email protected]:Aracthor/B.git libvvgl But when I...

Why doesn't “go get gopkg.in/…” work while “go get github.com/…” OK?

windows,git,powershell,github,go
I try to use go get gopkg.in/fatih/pool.v2 to install pool according to Readme.md, but can't success: C:\Users\xiaona\Documents\GitHub> go get -v gopkg.in/fatih/pool.v2 Fetching https://gopkg.in/fatih/pool.v2?go-get=1 https fetch failed. Fetching http://gopkg.in/fatih/pool.v2?go-get=1 import "gopkg.in/fatih/pool.v2": http/https fetch: Get http://gopkg.in/fatih/poo l.v2?go-get=1: dial tcp 107.178.216.236:80: ConnectEx tcp: A connection attempt failed because the connected party did not...

How to pack commits in git

git,github
I have two branches branchA and branchB. On branchA, I committed several times. Now I want to pack all commits on branchA from sometime and apply to branchB. Update To my understanding, merge will apply all commits in branchA to branchB, but I just want to pack some commits, say...

PHP Frameworks and Project Repositories

php,git,github,zend-framework2,repository
I'm starting a new in PHP and for the first time I'm going to use a framework as the basis of the project. I've decided to use Zend Framework 2 for it. I'm going to be version controlling the project via Github. Is it normal to include all the framework...

Not able to clone private repo using dockerfile

github,docker,dockerfile
I am new to docker, so was trying all basic stuff. I have used following dockerfile to generate my working docker images FROM ubuntu:14.04 MAINTAINER Alok Agarwal "alok.alok.com" RUN apt-get update #Install git RUN apt-get install -y git RUN mkdir -p /root/.ssh/ ADD id_rsa /root/.ssh/id_rsa RUN touch /root/.ssh/known_hosts RUN chmod...

Existing Java Project into Github

java,eclipse,github
I read around to see how to load an existing project into GitHub but I later got really confused. So in the end I did the following: Created a project which uses the GitHub Repository I have (Library-Tracker) as the location. Dragged existing Java files into src folder Committed and...

How to reset git server association

git,github
I want to set my local repository to push to a new origin. This is what I've tried: ~ git remote add origin https://my/git/origin.git > fatal: remote origin already exists. For your information: ~ git remote -v > origin https://my/git/origin.git (fetch) > origin https://my/git/origin.git (push) ...

How to Add a Zip I downloaded from GitHub to Version Control?

github
I am not even sure I am asking the question properly. Basically, we have a project on GitHub. I downloaded the zip called BlahDevelopment, which has API(serverside C#), Web(clientside code), and some other folders. I modified the files heavily (about two full days of work). Then I realized I should...

How to clone a public GitHub repository recursively without authentication?

git,github
I am trying to deploy an application from GitHub into a test server. I have created a new user in the server to own the local repository and run the application. Later on this user should also perform a daily pull from the repository automatically. I am able to run...

Managing git repos

git,github
I am new to git and am unsure of a few things, would really appreciate if someone could answer the below questions. So I own 2 private git repos. Repo1 has numerous developers contributing. Repo2 is only for me. I want to be able to basically take a copy Repo1,...

Cannot run elastic search in circleci to make my rspec for elasticsearch to pass?

ruby-on-rails-3,github,rspec,elasticsearch,circleci
i have configured my project in github with circleci. I am using searchkick for elastic search. my code to reindex looks like this: IN spec_helper.rb RSpec.configure do |config| .... config.before :each do Location.reindex end ... end My app/models/location.rb looks like this class Location < ActiveRecord::Base ... searchkick word_start: [:location_name], autocomplete:...

git add file to archive

git,github,gitignore,gitattributes
When I run this command, the files of my latest commit are saved to a ZIP. git archive -o ../code_version0.9.zip HEAD However the files in node_modules and build/ are missing. That Is because my .gitignore is the following one: node_modules build/ How can I ignore files, but Include them In...

Linking to another html page on Github

html,github
I've tried to search for a solution to this but wasn't quite sure how to phrase my problem in google in a concise way to obtain a solution. I'm rather new to Html and git hub and recently I made my own Github page with my own html code. In...

Usage of environment variable of Travis CI in maven test

java,maven,github,travis-ci
I have one environmental variable 'password' which is added to settings of my travis repo. I need to add this to my travis(instead of my maven file in github) because it cannot be shared to public. Now, I need to use the password in my maven test execution. without travis,...

How is a branch different from a folder, in a GitHub repository?

git,github,git-branch
I'm new to GitHub, and I don't exactly understand what a branch is. I got a feeling it is like a folder. Please explain: what exactly is the difference between folder and a branch?

Nested bullets in markdown for Github

github,markdown
I have the following text inside a Markdown file: - In order to free : - Items no rateados por exp: ```javascript db.items.find({"detail.rc": {$lt: 20}, "dst": "v"}).count() db.items.find({"detail.rc": {$lt: 20}, "dst": "b"}).count() ``` - Items no rateados por exp y sin rat: ```javascript db.items.find({"detail.rc": {$lt: 20}, "dst": "v"}).count() db.items.find({"detail.rc": {$lt:...