在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:defunkt/github-gem开源软件地址:https://github.com/defunkt/github-gem开源编程语言:Ruby 100.0%开源软件介绍:The GitHub GemThis gem works hand-in-hand with GitHub's API to help you out. Catch us in the #github room on freenode if you want to get involved. Or just fork and send a pull request. Getting started
Run it:
RequirementsOnly installs pure JSON gem Try:
Pulling Upstream ChangesLet's say you just forked
This will setup a remote and branch for defunkt's repository at master. In this case, a 'defunkt/master' branch. If defunkt makes some changes you want, simply
If you've already reviewed defunkt's changes and just want to merge them into your
master branch, use the
Fetching and Evaluating Downstream ChangesIf you are the maintainer of a project, you will often need to fetch commits from other developers, evaluate and/or test them, then merge them into the project. Let's say you are 'defunkt' and 'mojombo' has forked your 'github-gem' repo, made some changes and issues you a pull request for his 'master' branch. From the root of the project, you can do:
This will leave you in the 'mojombo/master' branch after fetching his commits. Your local 'mojombo/master' branch is now at the exact same place as mojombo's 'master' branch. You can now run tests or evaluate the code for awesomeness. If mojombo's changes are good, you'll want to merge your 'master' (or another branch) into those changes so you can retest post-integration:
Test/analyze again and if everything is ok:
The latter command will be a fast-forward merge since you already did the real merge previously. Network Patch QueueThe github gem can also show you all of the commits that exist on any fork of your project (your network) that you don't have in your branch yet. In order to see the list of the projects that have commits you do not, you can run:
Which will show you all the forks that have changes. If you want to see what those changes are, you can run:
which will show you something like this:
These are all the commits that you don't have in your current branch that have been pushed to other forks of your project. If you want to incorporate them, you can use:
for example to apply that single patch to your branch. You can also merge a branch, if you want all the changes introduced in another branch:
The next time you run the 'github network commits' command, you won't see any of the patches you have cherry-picked or merged (or rebased). If you want to ignore a commit, you can simply run:
Then you won't ever see that commit again. Or, if you want to ignore a range of commits, you can use the normal Git revision selection shorthands - for example, if you want to ignore all 7 jchris/gist commits there, you can run:
You can also filter the output, if you want to see some subset. You can filter by project, author and date range, or (one of the cooler things) you can filter by whether the patch applies cleanly to your branch head or not. For instance, I can do this:
Pretty freaking sweet. Also, you can supply the --shas option to just get a list of the shas instead of the pretty printout here, so you can pipe that into other scripts (like 'github ignore' for instance). IssuesIf you'd like to see a summary of the open issues on your project:
If you want to additionally filter by time:
Or filter by label:
Contributors
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论