Move code to git from local machine
I have my git repository created given by senior person. Now I want to upload my local source code to that repository. Which steps I need to follow? Is there any standard doc for that? My source code is in C#.
See also questions close to this topic
Git rebase to an earlier branch in a chain pulls in many extra commits
I have the following:
master \ branchA -> branchB -> branchC
branchAis in code review (rebased to
branchBis current work (rebased to
branchCadds a small feature unrelated to
I want to change the order to
branchA -> branchC -> branchB, which is the order I'll submit merge requests to master.
rebase branchAit seems like I'm causing
branchB's commits to become part of
rebase -ito remove them. But I'm clearly doing something wrong here, and I don't really understand what it is I'm doing wrong. What is the correct way to reorder these branches?
Why aren't text line endings uniform in GIT Despite * text=auto
I'm working on a clone of an existing GIT repo and the .gitattributes specify
* text=auto !eol.
From my reading of the documentation, text=auto specifies that all "text" files should be normalized in the repo.
Git recognizes files encoded in ASCII or one of its supersets (e.g. UTF-8, ISO-8859-1, …) as text files
And "normalized" means LF only as a line ending.
So, I don't know how to check the line endings in the obfuscated repo, but in the workspace I'm getting a mix of text (.java / .sql files). Some with LF and others with CRLF line endings.
!eolin means no specification for workspace line endings, I assumed they'd be as they are in the repo.
So, why the mix? Ideally I'd like to have all text file lines end with LF in both repo and workspace?
Proper way to post changes to packagist?
I recently took 'ownership' of a git repository for some code made for my company by a third party. I finally needed to update something in the package yesterday and realized I also needed ownership of the packagist package details. Upon contacting the developer, he just removed his version of the libraries on packagist and I re-created them from my own account. It seems to work fine for the existing code, but now I'm trying to update it. I made the updates on github, added tags for both v0.0.6 and 0.0.6 and pushed a new branch "0.0.6" then updated packagist.
But it shows up with 0.0.6.x-dev
And our live site is set not to accept development branches (and the staging branch is configured to match live) so composer won't download the update.
I've checked a number of threads and while I see many references to the fact packagist defaults to -dev on new branches, I have yet to find any instructions on how to change the default or otherwise change the branch to be non-dev.
What is the correct process for posting a non-dev update to packagist?
Creating git submodule without a remote
I want to have a
subrepo inside my
mainrepo which can push and pull from a completely different remote repo than my
main. So I want a submodule. But I want to create the submodule locally, then push it to remote. It does not exist anywhere yet.
All the of the examples I have seen involve pulling a remote repo into a submodule, to the degree that this is how submodules are created to begin with
git submodule add email@example.com:url_to/awesome_submodule.git path_to_awesome_submodule
Is there any way to create the submodule, make some commits, then push them to the remote repo in question?
Java Maven target is missing
Hi I would like to depend on
clickatellAPI but looks like it's not available on the main maven repo so I am trying to use jitpack.io like so:
<repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository>
and in my
pom.xmlI am trying to download the API like so:
<dependency> <groupId>com.github.clickatell</groupId> <artifactId>clickatell-java</artifactId> <version>master</version> </dependency>
But it can't find it. I am not sure about the the version tag tho. Also does someone know why it's not available at main maven repo.