git-push

git push xcrun: error: active developer path does not exist

一笑奈何 提交于 2019-12-09 05:09:09
问题 i recently deleted xcode 6 beta 3 and installed xcode 6 beta 6 when i entered gitpush in the terminal this happened xcrun: error: active developer path ("/Applications/Xcode6-Beta3.app/Contents/Developer") does not exist, use xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select ) 回答1: Try pasting this in the terminal : sudo xcode-select -switch /Applications/Xcode-Beta.app It will update the path , for the

How to specify which SSH key to use within git for git push in order to have gitorious as a mirror?

扶醉桌前 提交于 2019-12-08 22:18:00
问题 I have a project hosted on git.debian.org (alioth) and I'd like to configure a post-receive hook to update a mirror of the repository on http://gitorious.org I suppose I'll have to use git push --mirror gitorious Now, I'll need to have Alioth authorized on gitorious for the push to succeed. How do I do that? I suppose I need to configure a user on gitorious and create a ssh key for it. And then when I do the git push in the post-receive hook, make sure this ssh key is used. I could use a ~/

How to properly push one git repository over another on codebasehq?

随声附和 提交于 2019-12-08 19:19:29
I need to know the proper way to move git history from one repository to another on codebasehq.com. Situation: there is a repo on codebasehq.com which I call "old" on path like mycompany.codebasehq.com/projects/OLDNAME/repositories/PROJECTNAME after some development in old repo the team realized that this repo should actually be in different location on codebasehq.com and did "new" repo with just files from "old" repo and push it to mycompany.codebasehq.com/projects/NEWNAME/repositories/PROJECTNAME . So new repo right now has only one (initial) commit with all files from old repo but no old

Can't find my git repository url

寵の児 提交于 2019-12-08 12:00:52
问题 So I think I am confused - but for some reason I cannot push or pull to my git repository. I have a linux web server and have a web folder in /var/www/bcs.net.nz/ I did a git init bcs.git in this folder (I have also tried .git ) and then I thought I could do git clone git@bcs.net.nz:bcs.git to clone it on the local machine or git push on the remote machine. I have also added a git remote add origin git@bcs.net.nz:bcs.git on the remote machine. After all of that I still cannot push and pull

how to request pull request from a particular remote in git?

本秂侑毒 提交于 2019-12-08 09:48:38
问题 This is how my config file of git looks: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = false [remote "origin"] url = git@github.com:XXXXXXX/training.test.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master [remote "upstream"] url = https://github.com/YYYYYYY/training.test.git fetch = +refs/heads/*:refs/remotes/upstream/* The remote "origin" points to my

How to properly push one git repository over another on codebasehq?

て烟熏妆下的殇ゞ 提交于 2019-12-08 03:54:36
问题 I need to know the proper way to move git history from one repository to another on codebasehq.com. Situation: there is a repo on codebasehq.com which I call "old" on path like mycompany.codebasehq.com/projects/OLDNAME/repositories/PROJECTNAME after some development in old repo the team realized that this repo should actually be in different location on codebasehq.com and did "new" repo with just files from "old" repo and push it to mycompany.codebasehq.com/projects/NEWNAME/repositories

Programmatically get remote used for git push

心已入冬 提交于 2019-12-08 01:56:39
问题 How can I obtain the remote used when issuing git push ? I want to be able to use this in a script, or in git alises. Related: Default remote for git fetch 回答1: The answer is not as simple as for fetching, because there is a list of fallbacks which need to be considered: branch.<name>.pushRemote remote.pushDefault branch.<name>.remote origin These aliases take into account all of the above: branch-name = "symbolic-ref --short HEAD" # https://stackoverflow.com/a/19585361/5353461 branch-remote

Unable to push code on github?

元气小坏坏 提交于 2019-12-08 01:17:56
问题 I have successfully pushed one app code onto github. I had set up the ssh key and added it to github. But then I started working on another app and tried to push it onto github using: git remote add github git@github.com:user_name/demo_app.git git push -u github master Then I got the following error: Permission denied (publickey). fatal: The remote end hung up unexpectedly I have also tried changing the name of the remote Git repository but that didn't work too. I tried $ssh -v git@github.com

Multiple Github Accounts With Git In Windows

我的未来我决定 提交于 2019-12-07 20:32:17
问题 I recently ran into an issue where I could not push changes into a repository I had cloned down as another user from the first user I pushed with in git on my desktop. Basically it went like this, Use git for the first time which asks for github credentials when pushing to a repository. These credentials are then used for all pushes regardless of how the repo was cloned (which ssh key, user, etc) Generate SSH keys for both github accounts and add entries to the ssh config to target these

Prompt for password but not username?

冷暖自知 提交于 2019-12-07 19:07:14
问题 Is it possible to get git to prompt only for a password, and determine your username automatically? I want to have the extra layer of manual intervention as a reminder to be careful what I push, but just entering a password and not also the username every time is sufficient. 回答1: If you are using https url, you can change said url in order to include your username just before the git repos hosting server (here, for instance, github.com ): git remote set-url origin https://<yourUsername>