0

how to connect to my Github account using Terminal?

To login to my server i use:

ssh -l [login] [host]

for example: ssh -l kunass2 blue-world.pl.

But now in one of my repositories on Github i would like to merge a few commits into one using rebase/squash. But i can do that only by terminal (i cannot do this directly on the web). The first thing is: how to connect with my repository on Github? and change it from terminal.

Important thing is: this is my forked repository. To be precised: cdnjs.

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358

1 Answers1

1

github have no support. Instead, you have to install and use it in a terminal by example :

cd /path/where/you/want/your/clone
git clone git://user@host/path/to/git/repo.git

you can find the clone url in the main page of your github project.

Gilles Quénot
  • 173,512
  • 41
  • 224
  • 223
  • I do not want to clone this repository. Just to make some changes on it. – Bartłomiej Semańczyk Jan 03 '15 at 23:55
  • To have a copy of your project, you need to clone it :) – Gilles Quénot Jan 04 '15 at 00:01
  • but i do not want to have a copy. On the forked project from other account i made some changes, and i committed them. There is 5 commits. Now, all I need is to merge this 5 commits into one. And then a pull request to this forked project. – Bartłomiej Semańczyk Jan 04 '15 at 00:04
  • `git rebase` your **own** copy and commit. Then, `git push` and do a **pull request** – Gilles Quénot Jan 04 '15 at 00:08
  • and do i have to get a copy of this repo? it takes ~500MB, almost 100 000 files – Bartłomiej Semańczyk Jan 04 '15 at 00:11
  • He guy, we are now in 2015 now, is it such a very BIG DEAL ? – Gilles Quénot Jan 04 '15 at 00:14
  • One of the fundamental elements of git is that every developer has a copy of the repository. If you edit files directly on GitHub you are [actually] working on a repository that belongs to you (the fork). On the other hand, you can clone ONLY the branch you are interested in working on; saving most of the download. (see http://stackoverflow.com/questions/20033863/pull-specific-branch-from-git for an example) – Thom Parkin Jan 04 '15 at 01:06