github-for-mac

Git erased my changes, can I get them back

久未见 提交于 2019-12-24 11:24:07
问题 I had some changes in a branch, we'll call it branch2. I switched to the master branch without committing the changes. I'm guessing this is a no-no because when I switched back to branch2 all of my change were gone! It sure would have been nice if the GitHub client for mac would have warned me. Is there anyway I can undo this action and get my changes back? 回答1: If it wasn't committed, then there's nothing to do. Although, this is weird because normally git won't allow you to switch branch if

GitHub App & Heroku — fatal: Reference has invalid format: 'refs/remotes/heroku/master'

自闭症网瘾萝莉.ら 提交于 2019-12-24 11:08:07
问题 I am using the Git app and every time I open a certain repo I get this error: http://cl.ly/image/271p2h283j1g Any help would be great. Thanks. 回答1: You're certainly using Dropbox to sync your project among multiple computers. While performing the sync, the tool detected a conflict between two files and created a backup with the suffix (COMPUTER_NAME's conflicted copy DATE) . Unfortunately, the conflicted file is a reference, and according to Git naming convention, the name of a reference

Multiplatform development and autocrlf option in Git

不问归期 提交于 2019-12-24 10:23:51
问题 I am currently using Git and all is well on my Windows PC. I have my autocrlf set to true which according to this is correct https://help.github.com/articles/dealing-with-line-endings Actually I have no complaints, it seems to work very well, there are some warning now and again but I normally ignore them. But what does this actually do then? Does this add CR/LF when doing a PULL and then change CRLF to LF when doing a push? So "ALWAYS" in the repo there are files with "ONLY" LF and not CRLF?

Github README.md and readme.md - how to delete one?

a 夏天 提交于 2019-12-23 18:06:19
问题 Somehow I endup with having README.md and readme.md on github. Now these two influence each other so my GitHub.app gets completely confused. Github web site do not have any file delete function. How to delete one of these files? 回答1: The reason that github doesn't have a delete link or button is because a simple 'delete' goes against the nature of a Source Control Version System. The way to remove a file is to remove it locally, usually with a terminal window and the command line with git rm

Can I make the gh-pages branch of my git repository a mirror of the Master branch?

核能气质少年 提交于 2019-12-22 11:29:20
问题 GitHub has a Project Pages feature that pulls from the gh-pages branch of a repository. It's explained here: http://pages.github.com/ I want the gh-pages branch to be an exact mirror of the Master branch. One way I found (here on Stack Overflow) is to run: git config --add remote.origin.push +refs/heads/master:refs/heads/gh-pages This causes each instance of git push to push the Master branch of the repository into the gh-pages branch. The trouble that I have with this solution is that I'm

Git pre-commit hook failing in GitHub for mac (works on command line)

依然范特西╮ 提交于 2019-12-20 17:25:32
问题 I've created a very simple pre-commit script:- #!/usr/bin/env sh # Run tests npm test if [ $? -ne 0 ]; then echo "Tests failed. Aborting.." exit 1 fi exit 0 When I run git commit at the command line (with failing tests), I get the expected exit 1 with the message Tests failed. Aborting.. . However, If I use GitHub for Mac however I get: .git/hooks/pre-commit: line 5: npm: command not found Tests failed. Aborting.. (256) I'm guessing its down to npm not being available to the execution

GitHub Client on OS X Commit Fail ("Failed to add file …)

*爱你&永不变心* 提交于 2019-12-20 10:33:52
问题 I am trying to commit changes I have made to my code (as usual) from my GitHub client on my Mac OS X Mavericks machine. I added a new package to my project (it's a Laravel project, and I added the package Rocketeer. I also made a few config changes). I am getting the error: Failed to add file laravel-master/vendor/anahki When I uncheck this file in the commit list, it then goes to another file showing this error. Failed to add file laravel-master/vendor/illumin Any idea what is going on? I

can I use SourceTree and a GitHub app at the same time?

烂漫一生 提交于 2019-12-12 10:37:41
问题 As a novice, I prefer the simplicity of the GitHub app itself to work on our GitHub-hosted git project. However, to sync/push-and-pull another remote, I need to try SourceTree. (I am not confident enough to keep everything in the command line.) Can I use the GitHub app for most editing of my (main) local repo and syncing with GitHub.com, and only occasionally fire up SourceTree to sync (my main local repo, as a I cannot sync the github.com remote directly to another remote, can I?) with the

How can I access the 'GitHub for Mac' command-line utility from the terminal?

眉间皱痕 提交于 2019-12-12 08:10:05
问题 I recently installed GitHub for Mac, the graphical Git client from GitHub, and also the command-line utility from its menu, shown below: I was notified the command-line utility had been installed in /usr/local/github , but when I checked it had actually been put in /usr/local/bin/github - details shown below: When I try to run git I get -bash: git: command not found , so I added export PATH=/usr/local/bin:$PATH to ~/.profile thinking it would solve the issue, but it hasn't - all that seems to

How do I configure the Github for Mac app so that it shows my local repositories?

笑着哭i 提交于 2019-12-12 03:05:30
问题 I have been using Github with the bash command line so far. But now I would like to use the mac client. However, when logged in in the mac app it does not show my local repositories. The repos on github, however, show up. I guess I will have to configure this in the app itself but i could not find any preferences to do this. Any ideas? What am I missing? 回答1: In the sidebar you should see "This Computer" as a header above the "Github" header. Here you should have "My repositories". If you