GithubHelp home page GithubHelp logo

tiimgreen / github-cheat-sheet Goto Github PK

View Code? Open in Web Editor NEW
45.7K 1.4K 5.3K 776 KB

A list of cool features of Git and GitHub.

Home Page: http://git.io/sheet

License: MIT License

awesome awesome-list list github git

github-cheat-sheet's People

Contributors

dideler avatar djbrown avatar doggy8088 avatar gworldz avatar hail2u avatar hariadi avatar ivavictoria avatar jkeylu avatar joefairburn avatar jrafanie avatar ksato9700 avatar kwpolska avatar marocchino avatar mechmind avatar metavige avatar mislav avatar mttrs avatar parkint avatar rabellamy avatar raspat1 avatar rb2 avatar readmecritic avatar ruduran avatar seriousm avatar skhan97 avatar song940 avatar talater avatar tiimgreen avatar tonyxue avatar wolfg1969 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

github-cheat-sheet's Issues

Features were removed on the new branches page

The section about branches is now out of date with the new version that was rolled out. For example, you can’t change the default branch anymore by supplying a branch name in the URL to compare branches against it.

Shortlink

This is an awesome project, but the URL is hard to remember. I suggest you create a magical shortlink using git.io and add it to the readme and next to the description. :)

Clipboard image paste

I think this is a huge protip.

  • Capture screenshot (region) to clipboard (on mac: cmd-ctrl-shift-4)
  • Then cmd-v it into an issue.

image

It's actually called out from within the issue entry screen:
image

But it's so damn convenient I think it'd worth reiterating :)

Command to show whitespace in online editor?

It's a pet peave of mine to eliminate white space. If youuse the online editor, hitting enter on tabbed line will create tabbed-whitespace you only really notice if opening in vi/vim/nano. Why doesn't the editor show this as well? Is there a cheatsheeet/command option that would help?

Add resources section

I'll add a resources section to the bottom of the document with links to Git and GitHub related tutorials, websites, videos, talks, docs, etc.

For now, good night from me 🌉.

Shell and whitespace in file names

$ git rm $(git ls-files -d) is quite dangerous. You might accidentally delete other files if one of the files deleted in git contains whitespace in the file name.

Better:

$ git ls-files -d | while read f; do rm "$f"; done

That'll work better (still has issues with files containing new line characters but that's a lot less likely to happen).

Image width

Could we help image embedders?

Images are downsized to 664 pixels width, so up to 664 px it does not get resized.

Validate pull requests with Travis

Hello, I wrote a tool that can validate README links (valid URLs, not duplicate). It can be run when someone submits a pull request.

It is currently being used by

Examples

If you are interested, connect this repo to https://travis-ci.org/ and add a .travis.yml file to the project.

See https://github.com/dkhamsing/awesome_bot for options, more information
Feel free to leave a comment 😄

Diff or Patch of Comparing

Diff or Patch of Comparing

https://github.com/rails/rails/compare/master...4-1-stable.diff
https://github.com/rails/rails/compare/master...4-1-stable.patch

Chapter "keyboard shortcuts"

According to the explanation of the keyboard shortcuts there are (within some of them) different functions, depending on 'where' a user is at the time when using that shortcut.
E.g.: command l: in your example you talk about the filter/edit function within an issue and pull request list. If one presses the l while browsing a certain file, it means 'jump to line' though.
Maybe it would be good if you somehow specifiy the description (like you did for y for example) and/or mention that general circumstance at the beginning of the chapter also?

User-defined anchor

I think user-defined anchor is a useful protip. like this:

# Table of contents
- [Section](#userdefined)
- ...
...

# Section <a name="userdefined">
- foo
- bar
...

If a section name is complicated, to write the link to this section is difficult because the anchor name. With user-defined anchor, you can avoid this behaviour.

Especially in CJK, A section name is often complicated, like this:

# Table of contents
- [日本語の見出しです](#(I DO NOT KNOW THE EXACT SECTION NAME))

# 日本語の見出しです
- foo
- bar

Use user-defined anchor, like this:

# Table of contents
- [日本語の見出しです](#section1)

# 日本語の見出しです <a name="section1">
- foo
- bar

Add a CONTRIBUTING guide

This should include style guide information (a how-to on laying out and adding new sections so everything is consistent).

German translation: Question regarding the form of address ("you")

Hi Tim,
I discovered your cheatsheet yesterday and forked it right away. Right now I started with the translation for German (if you'd like to have that language also - if not, please let me know!) but before I'm getting too deep into it - what kind of salutation / form of address should I choose?
In English there's only the 'you', which can be either formally (e.g. talking with your boss) or more personal (e.g. talking with a friend).
In the German language we have the formally 'sie' and the personal 'du'.
So - which one should I choose..?
I'd vote for the personal 'du' as it's the open source community here, but I thought I'll ask and leave that decision up to you. ;)
Cheers

question: rebasing the first commit

Regarding this line from Empty Commits:
The first commit of a repo, as the first commit cannot be rebased later: git commit -m "init repo" --allow-empty.

Question
Can't the first commit be rebased/ modified using git rebase --interactive --root?

Nice Git Log Output

hi there,
even though not part of the referred talk, i really like this alias for nice git log output.
maybe add it to the list?

l = log --all --graph --oneline --decorate

Add a script

Hello,
I don't know if my request respects policies.
Can I add a script link in this repository? My script gets downloads count of GitHub releases.

Refined GitHub

Does the Refined GitHub extension have a place on this cheat sheet in the GitHub section? It tries to enhance features or highlights features already available from GitHub, remove some clutter and even add some additions.

I encourage you to read its highlights and install it to try it out.

To give some examples:

  • it enhances emoji reactions by showing avatars of people
  • it shows patch and diff links on commit pages (it also works arounds #155 (comment))
  • when using blame in GitHub it takes advantage of GitHub support for blaming parent commits with ^ and adds links to blame the parent commit

I think GitHub power users looking for more tips in the cheat sheet would find it useful.

It has a Safari port and soon it could be cross-browser with the Web Extensions API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.