repository

Pull request without forking?

北战南征 提交于 2019-11-27 17:39:24
Here are steps of code contribution from the topic " How do I contribute to other's code in GitHub? " Fork the project Make one or more well commented and clean commits to the repository. You can make a new branch here if you are modifying more than one part or feature. Perform a pull request in github's web interface. Is it possible to make a pull request without forking a repo? It's quite sad to see more than 20 repos in my account which were forked for some pull requests. They have no activity then and zero stars / followers. Looks like I'm just copying somebody's code for a black day. Ryan

How to fix a bad git tree object

醉酒当歌 提交于 2019-11-27 17:29:22
问题 I have a local copy of a repository that not longer have any remote associated to it. I'm trying to push this repo into a new remote however everytime I get this message: error: Could not read 9eefe9305253b2c039a54cbc8aa22f7f8e6e8790 fatal: bad tree object 9eefe9305253b2c039a54cbc8aa22f7f8e6e8790 I read in similar questions here that one way to fix it is retrieving this object from other copies of the repository or doing a hard reset. I can't do any of both since I don't have another copy of

DDD: how the layers should be organized?

两盒软妹~` 提交于 2019-11-27 17:20:54
I’m very much new in software development. Personally I think layered architecture is a great way to reduce the complexities that arise in the process of software development in object oriented approach and, not to mention, to keep your code organized. Now, I’ve run into some problems to be introduced with DDD (Domain Driven Design). Ofcourse, beginner level ones. Here it is – Let's say, I want to build an application to save “person” related data in database and display person details in a wpf datagrid (DDD is definitely not for the apps of such scale, but just to keep things simple for an

AutoMapper.Map ignore all Null value properties from source object

放肆的年华 提交于 2019-11-27 17:20:33
问题 I'm trying to map 2 objects of the same type. What I want to do is AutoMapper to igonore all the properties, that have Null value in the source object, and keep the existing value in the destination object. I've tried using this in my "Repository", but it doesn't seem to work. Mapper.CreateMap<TEntity, TEntity>().ForAllMembers(p => p.Condition(c => !c.IsSourceValueNull)); What might be the problem ? 回答1: Interesting, but your original attempt should be the way to go. Below test is green:

how to apply multiple git patches in one shot

馋奶兔 提交于 2019-11-27 17:14:25
问题 I am having around 100 patches like below,is there a way to apply all of them in one shot? 0001-*.patch,0002-*.patch,0003-*.patch............ 回答1: You can use git am , for example $ git am *.patch For all available options, checkout the man page. 来源: https://stackoverflow.com/questions/18494750/how-to-apply-multiple-git-patches-in-one-shot

Repository and Data Mapper pattern

▼魔方 西西 提交于 2019-11-27 16:57:14
After a lots of read about Repository and Data Mapper I decided to implement those patterns in a test project. Since I'm new to these I'd like to get your views about how did I implement those in a simple project. Jeremy Miller says : Do some sort of nontrivial, personal coding project where you can freely experiment with design patterns. But I don't know I did all this things right or not. Here is my project structure : As you can see there are many folders which I'm going to describe them in detail in below. Domain : Project Domain Entities go here I've a simple Personnel class which is

“tag already exists in the remote\" error after recreating the git tag

僤鯓⒐⒋嵵緔 提交于 2019-11-27 16:56:27
I get the following error after I run the steps below: To git@provider.com:username/repo-name.git ! [rejected] dev -> dev (already exists) error: failed to push some refs to 'git@provider.com:username/repo-name.git' hint: Updates were rejected because the tag already exists in the remote. Created the repository Cloned the repo on the local machine. Modified the README file, commited the changes and pushed the commit. Created tag dev : git tag dev Pushed tags: git push --tags Modified the README file, commited the changes and pushed the commit. Deleted tag dev , created it again and pushed tags

How can I get Maven to stop attempting to check for updates for artifacts from a certain group from maven-central-repo?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 16:51:06
I'm working on a fairly big Maven project. We have probably around 70 or so individual artifacts, which are roughly split into two libraries of shared code and maybe ten applications which use them. All of these items live in the namespace com.mycompany.* . Most of the time we're running against snapshot builds. So to do a full build of an application, I might first build the library projects so that they are installed to my local repository (as, say, mycompany-libname-2.4-SNAPSHOT.jar ). The problem is that when I then go build the applications. For some reason, Maven wants to check the main

How to remove the first commit in git?

那年仲夏 提交于 2019-11-27 16:49:09
I am curious about how to remove the first commit in git. What is the revision before committing any thing? Does this revision have a name or tag? For me, the most secure way is to use the update-ref command: git update-ref -d HEAD It will delete the named reference HEAD , so it will reset (softly, you will not lose your work) all your commits of your current branch . If what you want is to merge the first commit with the second one, you can use the rebase command: git rebase -i --root A last way could be to create an orphan branch, a branch with the same content but without any commit history

Git: add vs push vs commit

て烟熏妆下的殇ゞ 提交于 2019-11-27 16:37:37
What is the difference between git add , push and commit ? Just a little confused coming from SVN, where "update" will 'add' stuff, and commit does a "push" and will 'add' as well There are all different functions within git. Hoping for some explanation from your experience. abcd git add adds your modified files to the queue to be committed later . Files are not committed git commit commits the files that have been added and creates a new revision with a log... If you do not add any files, git will not commit anything. You can combine both actions with git commit -a git push pushes your