KDE TechBase
  • Page
  • Discussion
  • Edit
  • History
KDE TechBase is a Wiki - You can help! Please contribute! Questions?
Please ask development related questions in the KDE Community Forum.

Development/Tutorials/Git/Intermediate

< Development | Tutorials | Git

Once you're comfortable committing code with git, there are some simple things that can save you time and effort...

TODO

  • feature branches for fun and profit
  • shared branches?

[edit] Handling local changes: git stash

Sometimes (eg. when using git svn rebase) Git won't let you proceed if you have uncommitted changes. If you don't want to commit those changes, you can use git stash instead. This command stores the local changes safely out of the way on a stack. When you want those changes back it can re-apply them to your repository and clear the stack. A very handy feature in many situations! Just do this:

git stash
git svn rebase # or whatever it was you were trying to do
git stash pop # apply-and-clear

There are more features of git stash explained in the fine manual. :)

git help stash
Retrieved from "http://techbase.kde.org/Development/Tutorials/Git/Intermediate"

Navigation

  • Home
  • Help
  • Recent changes

Sections

  • Getting started
  • Development
  • Schedules
  • Policies
  • Contribute
  • Projects

Toolbox

  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link

Personal tools

  • 38.107.191.97
  • Talk for this IP
  • Log in / create account
  • Login with OpenID
Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal