Git Product home page Git Product logo

useful-git-stuff's Introduction

useful-git-stuff

This is a bunch of links for useful git commands that I really need to keep track of, with mini-tutorials attached. So, let's begin.

Managing forks

Rebasing a fork

Link
Rebasing forks is pretty easy. You add a connection to the primary repo called "upstream", and then just rebase to that.

Managing commits

Deleting commits

Link
The Dolphin devs were very helpful with some of my early git work, so props to them for this one. It's mistyped, so the actual command should be

git reset --hard HEAD~n

The rest of what Lioncash wrote is covered in Squashing Commits.

Squashing Commits

Link
Man, git really needs a simple git squash command. Basically, you take the last n commits you have and run git rebase -i HEAD~n. This will give you a text file, where you can squash commits into each other, then another text file where you can edit the commit message. This SHOULD work fine. If you want to delete commits, you'll want to look at git reset.

Makefiles

https://stackoverflow.com/questions/909046/makefile-in-windows?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

useful-git-stuff's People

Contributors

kekker-git avatar

Watchers

 avatar  avatar

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.