branch

Is there a way to see all changed files on a branch in Git?

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I apolagise if this isn't very clear but in Git, is there a way to see all changed files on a branch, by name only. As far as I know I can use git log to see files that have changed in a single commit but I want to see all files that have changed since the branch was created, over several commits. There is git diff but this also lists the changed files in the branch I'm comparing to which I don't want to see. I kind of want a command that says 'show me file names for all changed files in this branch'. Many thanks 回答1: Supposing you're on

BitBucket Jenkins doesn't automatically build

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: On my Jenkins I configured: Source Code Management Git repository: https://bitbucket.org/username/project.git credentials: username/password Builder Triggers Build when a change is pushed to BitBucket On my BitBucket Webhooks: http://Jenkins.URL:8080/bitbucket-hook I tried pushing a small change to a .txt file, but the Jenken doesn't build automatically. If I manually click "build now", it shows success. What could be the problem? In the bitbucket repository, the project is simple. I just have a text file to test. I think as long as I made

Three level nested routes in angular-ui-router

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Im trying to get my nested route working but it's giving me hard time for two days now :( one level works fine two levels works fine three levels is not working! can anybody please help me out? Thanks in advance angular.module('settings', []).config(['$stateProvider', '$routeProvider', '$urlRouterProvider', function($stateProvider, $routeProvider, $urlRouterProvider) { $stateProvider .state('settings', { url: '/settings', template:"Settings", controller: function(){ console.log('settings'); } }). state('settings.branch', { url: '/{branchId:

Parameter is less accessible than method

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to pass a list from one form class to another. Here's the code: List myArgus = new List (); private void btnLogin_Click ( object sender , EventArgs e ) { // Get the selected branch name string selectedBranch = lbBranches . SelectedItem . ToString (); for ( int i = 0 ; i And then in my BranchOverview class: List branch = new List (); public BranchOverview ( List myArgus ) { InitializeComponent (); branch = myArgus ; } When I run the code, I get this error: Inconsistent accessibility : parameter type 'System.Collections

JGit: Checkout a remote branch

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using JGit to checkout a remote tracking branch. Git binrepository = cloneCmd.call() CheckoutCommand checkoutCmd = binrepository.checkout(); checkoutCmd.setName( "origin/" + branchName); checkoutCmd.setUpstreamMode(CreateBranchCommand.SetupUpstreamMode.TRACK ); checkoutCmd.setStartPoint( "origin/" + branchName ); Ref ref = checkoutCmd.call(); The files are checked out, but the HEAD is not pointing to the branch. Following is the git status output, $ git status # Not currently on any branch. nothing to commit (working directory clean) The

How can I color Git branches based on their names?

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a number of branches in my local git repository and I keep a particular naming convention which helps me distinguish between recently used and old branches or between merged and not merged with master. Is there a way to color branch names in the output of git branch according to some regexp-based rules without using external scripts? The best I've come up with so far is to run git branch through an external script, and create an alias. However, this may not be very portable... 回答1: git-branch doesn't let you do that Is there a way to

Git problems with git push --all

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a base repository that lives on a UNC \machine\share ....etc. I have a local clone that I work on in the master branch and occasionally merge over to the "stable" branch. usually I do a git push --all to move all changes in all branches up to the server. After creating a new branch git branch MultiCompany and then pushing it to the server git push --all which creates the branch on the server also. I did some work, committed all the changes in multicompany branch and then tried to do a git push --all and got the following error:

Git branching: master vs. origin/master vs. remotes/origin/master

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 选择语言 中文(简体) 日语 英语 中文(繁体) 由 翻译 强力驱动 问题: I think I'm on the right track to understand the basic concepts of git. I've already set up and cloned a remote repository. I also created a server side empty repository, and linked my local repository to it. My problem is that I don't understand the difference between: origin/master vs. remotes/origin/master As far as I have understood, master is a local branch, and remotes/origin/master is a remote one. But what exactly is origin/master ? 回答1: Take a clone of a remote repository and run git branch -a (to

Git hook when a new branch is created and/or pushed

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to hook into the creation of a new branch. Either when the branch is created or when the first push is done. Is one or both possible? 回答1: It's the update hook, it gets a zero sha for new refs, branches will say heads not tags 回答2: The accepted answer says to use the update hook . I'm not sure that helps everyone, as that is a server-side hook. It will work if you push your new branch, but what about keeping it purely local? I'm creating local branches that are never pushed, so I'm using post-checkout instead. After creating your

How to clone git repository with specific revision/changeset?

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I clone git repository with specific revision, something like I usually do in Mercurial: hg clone -r 3 /path/to/repository 回答1: UPDATE for git versions > 1.7 use git clone and git reset, as described in Vaibhav Bajpai's answer If you don't want to fetch the full repository then you probably shouldn't be using clone . You can always just use fetch to choose the branch that you want to fetch. I'm not an hg expert so I don't know the details of -r but in git you can do something like this. # make a new blank repository in the current