Clone someone else's public repo in Github Desktop - github-desktop

Github Desktop makes it easy for me to clone projects from Github, when they belong to my account (or one of my organizations).
Is there any way for me to clone a public repo belonging to somebody else with Github Desktop?

I don't believe you can do that from within Github Desktop.
You can use the Clone in Desktop button on a Github project's webpage (as Anatoly said).
Another alternative (without the client of course), is opening a cmd/terminal and using:
git clone https://github.com/user/repo.git

You can drag-and-drop the URL from your browser onto GitHub Desktop. Then it will ask you where to save the files.

Seems fork and clone if you use the client. Otherwise use command line tools like #Shameel Abdullah said

Related

Clone in source tree link

On the bit bucket repositories there is a "Clone in SourceTree" link. does anybody know how this works as I would like to add it to and application im working on.
Regards
Atlassian SourceTree is a free Git and Mercurial client for Mac and Windows, so it's a link to download and open the repo with their software on your computer

Connecting Aptana with Git

I am new to Git and Aptana. I have downloaded Git from the location:windows.github.com. It installed fine.
I see a default integration of Aptana with Git, but what I dont know where it is pointing to which server location?
I want to host my code on GitHub so that I can keep different machine in Synch.
Thanks
There is a difference between Git and Github's application. Once you install both Git and Github's Windows application you need to setup both Git and Github in your PC — detailed help available in their respective sites.
Both Github's app and Aptana use the settings from your Git profile in your PC while committing and these details are simply, your username and email (and other profile settings if any).
If you want to use Aptana to connect to Github, you can do so by using: Wrench icon in the project sidebar > More > Add remote Here you must add a remote repository which will be used by Aptana. More details on Git remotes here. To avoid unnecessary hassles, the Windows Github app makes this management easier. Aptana provides a GUI around Git which is exactly what the Github App does, with some additional features and ease.
Hope I haven't confused you a little more.

Rails: Rubymine: GitHub

I can't seem to figure out how to commit my files to GitHub.
I am using RubyMine 4.5 on the MAC
I have git set up locally
I have a private account on GitHub
From the RubyMine Preferences, I have my GitHub credentials properly set up (and acknowledged as such by RubyMine), but it did not give me an option to select a repository on GitHub.
How do I commit file to the GitHub repository? There are too many CVS and Git menu items in RubyMine.
PS: I've read the online help sections (the only thing available to me), and I followed the instructions in the GitHub integration, but the directory I'm trying to commit is failing to push to GitHub, with RubyMine telling me that there was nothing to commit. This is the first time I use RubyMine for GitHub. Nothing about this on StackOverflow.
Okay, I think I've recreated your situation locally and it appears that RubyMine has terrible support for managing remotes. If you create a Git repository locally, then (separately) create a repository on GitHub, there's no obvious way to marry the two from within RubyMine.
Basically, you need to set up GitHub as a remote for your local repository from the shell, and once that's done then RubyMine will be able to push as normal.
Please note that the below instructions assume you want to overwrite your GitHub repository with the full history from your local repository -- If your GitHub repository has data that you do not want to lose, do not execute these commands! See Below.
Open up Terminal:
cd /path/to/my/project/root
git remote add origin https://github.com/yourusername/yourrepo.git
git push -u origin +master
Now, RubyMine should be able to push to your GitHub repository via VCS > Git > Push
If your GitHub repository has already been committed to and you don't want to lose those changes, you'll need to either create a new GitHub repo or clone your GitHub repo into another folder and merge your local repository into the clone.
This can be avoided entirely if you're trying to push your existing local repository to a new GitHub repo: Simply use the VCS > Import into Version Control > Share project on GitHub option and use the dialog to create a new GitHub repository.

Github straight to heroku

I have a project on a private github repository (but this should work for public repositories too) and there are many contributors. The github repository has been designated as the master copy. This project is set up to deploy to my app on heroku.com.
I would like to get the git push to go straight from github to heroku without first having to host it on my workstation. Is there a way to do that?
Sounds like this isn't possible: Push from github to heroku without downloading repo
Not sure you can do this directly, but this should at least get you looking in the right area: http://help.github.com/post-receive-hooks/
This thread might be of interest as well.

Whats the best way to work with Github and multiple computers?

I am developing some school grading software and decided to use Github to host the project. After building some code on my Ubuntu box I pushed it to Github and then cloned it down to my MacBook Pro. After editing the code on the MBP I pushed it back to Github. The next morning I tried to update my repo on the Ubuntu box with a git pull and it gave me all kinds of trouble.
Whats the best way to work in this situation? I don't want to fork my own repo and I don't really want to send myself emails or pull requests. Why can't I just treat Github like a master and push/pull from it onto all of my personal repos on different computers?
I'll assume your problem was that the machine on which you first created the repo crapped out when you tried to issue the git pull command.
When you clone an existing git repository (like you did on your 2nd machine, the MacBook Pro), you're automatically set up to so your git pull commands will automatically merge the remote with your local changes.
However, when you initially create a repo and then share it on a remote repository, you have to issue a few commands to make things as automated as a on cloned repo.
# GitHub gives you that instruction, you've already done that
# git remote add origin git#github.com:user_name/repo_name.git
# GitHub doesn't specify the following instructions
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
These last few instructions configure git so future git pull's from this repo will merge all remote changes automatically.
The following is a bit of shameless self-promotion. If you use Ruby, I have created a Ruby-based tool that lets you deal with all these kinds of things with git remote branches. The tool is called, unsurprisingly, git_remote_branch :-)
If you don't use Ruby, my tool is probably gonna be too much of a hassle to install. What you can do is look at an old post on my blog, where most of the stuff grb can do for you was explicitly shown. Whip out your git notes file :-)
You can also add multiple SSH public keys.

Resources