git 菜谱 cookbook

- 我自己的一个小项目,在两个地方开发,在其中一个地方修改以后push到服务器上,在另外一个地方添加了一些文件,但现在并不希望保留这些文件。

 

git clean  -d  -fx ""


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Over 60 hands-on recipes to efficiently self-host your own Git repository using GitLab, About This Book, Get hands-on with day-to-day tasks to effectively manage and administer your repository with GitLabCovers advanced topics like GitLab continuous integration and LDAP integrationAuthored by a member of the GitLab core team, this Cookbook gives practical insights into installing and self-hosting your own GitLab and GitLab CI server, Who This Book Is For, This book is aimed at developers and devops that have a GitLab server running, and want to be sure they use it to its full potential. This book will also be useful for people looking for a great Git platform, and learn how to set it up successfully. Some system administrating experience on a UNIX-based system would be useful, but is not required., What You Will Learn, Install and maintain your GitLab instance Work with multiple users, create groups, and configure your project visibility Secure your code with the correct GitLab configuration Make the most of the built-in issue tracker, including merge requests Manage your projects through the GitLab API Set up webhooks and system hooks to receive notifications Manage your GitLab server using LDAP, In Detail, GitLab is a popular, open source Git hosting solution implemented by more than 50,000 organizations. This book has some carefully chosen recipes to help you decide on the type of GitLab installation that will fit your requirements. Along with covering some of the basic principles of Git, the book covers practical scenarios to show how you or your organization can effectively manage your proprietary code., You will learn how to manage multiple users, groups, and the permissions GitLab has for them. Updating your GitLab instance, creating backups, and restoring backups are a few of the important tasks described in detail to assist you in maintaining your GitLab server. Moreover, the GitLab API is extensively covered to guide you through the various operations to manage your project.
Title: Git Version Control Cookbook Author: Aske Olsson, Rasmus Voss Length: 273 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2014-08-25 ISBN-10: 1782168451 ISBN-13: 9781782168454 90 hands-on recipes that will increase your productivity when using Git as a version control system Overview Filled with practical recipes that will teach you how to use the most advanced features of the Git system Improve your productivity by learning to work faster, more efficiently, and with more confidence Discover tips and tricks that will show you when and how to use the advanced features of Git In Detail Starting with the Git data model, you will learn how Git stores files and how it looks at commits. You will then learn how you can recover from mistakes; from committing on the wrong branch to recovering lost commits/files. Next, you will discover how you can force rebase on some branches and use regular Git merge on other branches. You will also learn how to extract information from the repository. As you progress through this book, you will learn how you can automate the usual Git processes by utilizing the hook system built into Git. The book also covers advanced repository management, including different options to rewrite the history of a Git repository. Finally, you will discover how you can work offline with Git, how to track what is going on behind the scenes, and how to use the stash for different purposes. What you will learn from this book Understand the Git data model and how you can navigate the database with simple commands Learn how you can recover lost commits/files Discover how you can force rebase on some branches and use regular Git merge on other branches Extract metadata from a Git repository Familiarize yourself with Git notes Discover how you can work offline with Git Debug with Git and use various techniques to find the faulty commit Approach This practical guide contains a wide variety of recipes, taking you through al

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值