tiimgreen / github-cheat-sheet Goto Github PK
View Code? Open in Web Editor NEWA list of cool features of Git and GitHub.
Home Page: http://git.io/sheet
License: MIT License
A list of cool features of Git and GitHub.
Home Page: http://git.io/sheet
License: MIT License
Mr. Holman made another talk named More Git and GitHub Secrets. There's a lot of cool stuff on there too so it's worth looking at and adding to this project. See his slides too.
The Tasks Section of Github should be updated to reflect with the lasted update to the task list.
https://github.com/tiimgreen/github-cheat-sheet#task-lists
It is now possible to have nested task lists.
As mentioned in #20, the sections should be organized. Will do this tomorrow.
I don't know how to put this feature in a short sentence, but here is the feature:
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.
Hi,
I often use diff --color-words
for smaller changes. For what I see github supports that, but I can't see how to enable that via pygments
highlighter. Is it possible?
More specifically how Travis CI can run tests automatically and then leave the result (and current state) of the build on Pull Requests. More info here.
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. :)
Git.io deprecation
Remove the part of the page: https://github.com/tiimgreen/github-cheat-sheet#gitio
Effective Friday, April 29, 2022 all links on git.io will stop redirecting. Please update any existing links that make use of the git.io URL service immediately.
Reference:
https://github.blog/changelog/2022-04-25-git-io-deprecation/
hub is a command-line wrapper for git that makes you better at GitHub.
Resource: https://hub.github.com/
When you drag the scroller from middle to the extreme left or right it comes back to its original position.
For example try this one - owtf/owtf#821
The log scroller.
On the github the pages don't offer the option to go up quickly. People get fed up from scrolling.We need a button or so on the pages to go back up. As only at the top we have other options for seeing code , issues etc.
Does anybody know a command line parameter or something similar to hide all notes in the file view of pull requests?
Hello, we have indexd this cheat sheet to awesome-cheatsheet
Thank You !!! 🚀 🚀 🚀
I'll add a section on Git's instaweb
command, tomorrow.
如题,利用readme.md生成的网页页面利用chrome自带的打印公共转存为pdf,目录连接处的所有目录条目都不能跳转,但是直接在github的网页端可以正常跳转,不知道其中的原因,求解答。
Format error in git cleanup
row, aliases section. All languages are wrong.
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?
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 🌉.
GitHub will render csv in a table, and render YAMl headers in markdown docs.
It showed comment that was posted didn't match the times.
Is github time dependent on os time settings?
This can result in forgery.
$ 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).
Test
Could we help image embedders?
Images are downsized to 664 pixels width, so up to 664 px it does not get resized.
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 😄
如何得到每个git commit的代码变化
记得有一个这样的tool,但是忘了叫什么了,有没有人知道并把这个列出来?
I saw this tweet:
😲I just learned that GitHub allows you create drop-downs. Here's the result of `<details> (very long stacktrace) </details>`: pic.twitter.com/lkM2ABi2Je
— Felix Rieseberg (@felixrieseberg) April 4, 2017
from @felixrieseberg and I think this cheat sheet needs this info, including the gif =D
I'm opening this issue because I want to add it, but only will have time to get around to it later ;)
Hi,
Can I help for supporting Turkish?
Thanks
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
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?
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
This should include style guide information (a how-to on laying out and adding new sections so everything is consistent).
See details https://css-tricks.com/the-github-profile-trick/ .
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
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
?
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
gift card tile hieght should be 100px not 200px
Hi @tiimgreen
Thanks for your good cheat sheet.
Can i start Persian translation of cheat-sheet?
No body else started it before?
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.
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:
^
and adds links to blame the parent commitI 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.