logo
down
shadow

When you clone a repo like Laravel into an existing project do you pull it in as submodule even if you're not planning t


When you clone a repo like Laravel into an existing project do you pull it in as submodule even if you're not planning t

By : user2955171
Date : November 22 2020, 10:38 AM
hope this fix your issue You shouldn't need submodules.
Once Laravel is installed, you can follow this Laravel recipe to manage your application with Git, provided your application is a Laravel project.
code :
laravel:~$ cd myapp
laravel:~/myapp$ git init
laravel:~/myapp$ git config --global user.email "you@example.com"
laravel:~/myapp$ git config --global user.name "Your Name"

laravel:~/myapp$ git add .
laravel:~/myapp$ git commit -m "initial checkin"


Share : facebook icon twitter icon
egit for eclipse: How do I put my existing project in the clone of my buddies repo?

egit for eclipse: How do I put my existing project in the clone of my buddies repo?


By : user3480530
Date : March 29 2020, 07:55 AM
I wish this help you The notion of repo and branch are quite different.
If you have a clone of our buddy's repo, you can work on a branch named like the one your buddy uses (by default 'master' if he hadn't created any other), and everything you will push will be added/merged to the remote branch in the remote repo.
Add an existing origin to a django project and pull the existing repo in it.

Add an existing origin to a django project and pull the existing repo in it.


By : havardoj
Date : March 29 2020, 07:55 AM
I wish this helpful for you Since you don't have any history of your changes to preserve I think your best bet is to clone the repo normally, and then copy your changes into that repository. Your question is a bit sparse on details, but something like the following should work
code :
git clone <git hub project> <new folder on your system>
# maybe you can use a tag here for the SHA 
git checkout -b my_branch SHA_THAT_REPRESENTS_YOUR_ZIP_DOWNLOAD
cp -r <your existing directory> <your new git repository>
git status # abort if this step doesn't look right 
git add # add all your changed files 
git commit # commit your work
git rebase <main dev branch> # catch up 
How to add an existing nested repo (already checked out in a subdir) to a parent Git repo as a submodule?

How to add an existing nested repo (already checked out in a subdir) to a parent Git repo as a submodule?


By : somaia
Date : March 29 2020, 07:55 AM
To fix this issue See TL;DR at the end.
Let's read the man-page for git submodule carefully, and notice the following remark:
code :
$ git submodule status
No submodule mapping found in .gitmodules for path 'wp-content/themes/liquorice'
$ git submodule add git@github.com:/nudgeme/Liquorice.git ./wp-content/themes/liquorice
'wp-content/themes/liquorice' already exists in the index
/sshx:kosmoplus:/home/kosmoplus/kosmoplus.ru.old $ git submodule status
No submodule mapping found in .gitmodules for path 'wp-content/themes/liquorice'
$ 
$ git submodule status
No submodule mapping found in .gitmodules for path 'wp-content/themes/liquorice'
$ git rm --cached ./wp-content/themes/liquorice
rm 'wp-content/themes/liquorice'
$ git submodule add git@github.com:/nudgeme/Liquorice.git ./wp-content/themes/liquorice
Adding existing repo at 'wp-content/themes/liquorice' to the index
$ git submodule status
 9733c0ab3e4207352e3f51d612f2a1c9c4a0b63a wp-content/themes/liquorice (liquorice2.1-1-g9733c0a)
$ 
Need to clone repo after using bfg repo-cleaner or pull on existing?

Need to clone repo after using bfg repo-cleaner or pull on existing?


By : user3514808
Date : March 29 2020, 07:55 AM
I wish this help you You'd be better off doing a fresh clone, as your old working directory will have dirty history that you don't want to risk pushing back into your newly cleaned repo.
Can't git pull a submodule when git clone of repo wasn't recursive

Can't git pull a submodule when git clone of repo wasn't recursive


By : Datum
Date : March 29 2020, 07:55 AM
Hope this helps After cloning a repository without recursing the submodules, e.g. in OP's case after:
code :
git clone  git@github.com:eyalroz/parent-repo.git
cd parent-repo/
git submodule update --init --recursive
Related Posts Related Posts :
  • How can I import a 72GB dump file into git?
  • git + lighttpd: how to defined permissions for users and groups?
  • How do I give all GitLab users access to all repositories without making the repos public?
  • Unable to push file to git repository
  • Remove intermediate commit in Visual Studio Online
  • Why is Git committing the old version of a file?
  • git pull - will it fetch tags on remote by default?
  • Can I change my .gitignore at a remote site and will it push to GITHUB repro when I do a git push?
  • Git status upstream and downstream
  • Docker git clone on container launch?
  • How to get only YYYY-MM-DD output from git-log?
  • Git keeps resetting my files after a hard reset?
  • Git Source Control between two networks
  • Best practice for multiple vagrant boxes
  • What's the command to reset a file to a specific commit?
  • Git: do not create index.lock for read-only operations
  • Find the right parent of a merge commit in a non-interactive way
  • git push non for all the commits
  • bitbucket git commits missing
  • Git: Duplicates of files are created
  • Bash script globing error when doing a curl for custom Github CLI API with oAuth token header
  • troubling rebasing branch with merge conflics
  • Stash/branch/working copy confusion
  • How can I ignore all folders whose names are of the form <pattern>*?
  • Git syncing part of a branch with other branches
  • How to make code suggestion in github/bitbucket?
  • Change mail address in each commit
  • Inspecting branches with command line Git
  • Git distributed revision control and filetypes
  • Changing source control type in TFS 2013
  • How to use a new remote git repository when there is no access to old git repository?
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org