DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Personalized Code Searches Using OpenGrok
  • 10 Easy Steps To Start Using Git and GitHub
  • GitOps: Flux vs Argo CD
  • The 8 Best GitHub Integrations to Look at in 2019

Trending

  • Bad Software Examples: How Much Can Poor Code Hurt You?
  • Choosing the Appropriate AWS Load Balancer: ALB vs. NLB
  • TDD With FastAPI Is Easy
  • TypeScript: Useful Features
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. 7 Great GitHub Tips and Tricks

7 Great GitHub Tips and Tricks

GitHub tips that may help you even if you've been using it for years.

Tori Wieldt user avatar by
Tori Wieldt
·
Aug. 20, 15 · Opinion
Like (1)
Save
Tweet
Share
2.38K Views

Join the DZone community and get the full member experience.

Join For Free

As of 2015, GitHub reports having more than 9 million users and more than 21.1 million repositories, making it the largest code host in the world. Developers use GitHub to learn about new technologies, contribute to open source projects, collaborate on internal projects, and much, much more.

At OSCON last month, Brent Beer of GitHub’s sales engineering team gave a packed talk full of fascinating, useful tips called Everything I Wish I Knew When I Started Using GitHub.

There were tons of great takeaways from Brent’s session, but here are seven of my favorite GitHub tips:

1. Support for Subversion

GitHub repositories can be accessed from both Git and Subversion (SVN) clients. The command git-svn provides a two-way bridge between Git and SVN. Read more in the Pro Git book.

2. You Can Revert a Pull Request (PR)

When you merge a feature in with a pull request, and you need to undo it quickly, you can click Revert to open a new pull request that is an undo for the entire previous feature. More details are on GitHub Help.

3. The Blame Game

A terrible name, but a terribly useful feature. Use it to find the list of changes in a file and who made them. Click the Blame button in the upper-right tab list to quickly find out who last worked on the file. Or, type Git blame [filename] at the command line.

4. Is My Code Licensed?

Opting out of open source licenses doesn’t mean you’re opting out of copyright law. Learn about licensing and how to license your code at choosealicense.com.

5. Not Just Code

GitHub can save and render images, 3D (STL) files, and PDFs as well as code. When looking at a commit or set of changes that includes an STL file, GitHub displays the changes. Use the Revision Slider option to see the diffs transition between the current and previous revisions.

GitHub presentation screenshot

6. Closer Than Bit.ly

Ever wish you had a smaller URL to share with your coworkers? http://git.io provides a URL shortener for your GitHub repos.

7. Quick, I Need My Pic

If you ever need quick access to your profile picture, you can access it at github.com/[profilename].png

Brent did a great job sharing his GitHub hints so you don’t have to learn them the hard way. To see his full list of tips you can click through his slides here.

Now go work on your code portfolio.

3D rendering courtesy of Brent Beer.

GitHub Git Open source

Published at DZone with permission of Tori Wieldt, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Personalized Code Searches Using OpenGrok
  • 10 Easy Steps To Start Using Git and GitHub
  • GitOps: Flux vs Argo CD
  • The 8 Best GitHub Integrations to Look at in 2019

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: