how do i upload a folder, with subfolders inside from local to remote repo avoding the submodule folder? - github

**every time the result is a submodule folder, thing that i can't open. How do i push so there's folders inside of the main branch?
help please submodule **

Related

local git directory with files not on a github clone

I added a directory with files to the local git repo and did the commit. When it was pushed to github it looked like it was added. When I do a clone from github the directory does not show up. I do not find a .gitignore file. Doing a check-ignore --verbose to one of the files added does not return anything.
For an experiment (with the clone up-to-date) I added a directory "gittest" with a file "hello.txt"; did the commit & push. The push appears to show the addition. A pull in the clone appears to show the addition, but the directory/file does not show. Other than starting a new repo and deleting the old one I am stuck as what to do next.

Yaml automation for files move into another folder renamed and commit into another repository

I want help with git action using yaml that can change yaml file in another folder and rename it and also commit files of this renamed files in its repository.
I have a folder A with this file in my local repository and I want when I push, commit, deploy this file in Folder A below, it will update folder B and rename it and lastly commit it to its repo.
"aaa.yaml"
"bbb.yaml"
"ccc.yaml"
Folder A has a path:\obi\chioma\zoo\sweet and its git hub.
This folder B will update and rename as:
"aaa091012.yaml"
"bbb091012.yaml"
"ccc091012.yaml"
Folder B Has a path in local repo a: \local\local\projects\api.github.io
Git repository: https://api.laugh/run/
For folder B I have a git hub repository for it and I want in git action of the first repo folder A to also push or commit folder b automatically from a push done at folder A.
I want to write a script for this using yaml in git action. Please can you help or any suggestion.

How to upload in an Existing Repository?

I have a repository. I pushed files from a folder. Now I don't want to create new Repository. But I want to push files from a new Folder. The folders are almost same. How can I do this with command?
Assuming that you already have the repository created, you can do the following.
cd newfolder
git clone <link-to-clone-from>
Then copy the files to new folder. Check git status -s to see a summary of changed files in new folder after you copy files. Using git diff or beyondcompare can show you the exact changes that you are about to commit next. If everything looks fine, continue with the next steps
git add -a
git commit -m "your commit message"
git push origin master
Assuming you have two folders:
- Old repo folder
- .git
- My old folders
- My old files.
- New repo folder
- My new folders
- My new files.
And you want to replace all stuff in the remote repo from the old repo folder with the new repo folder.
To do that:
First, delete all content except the folder: .git in the Old repo folder.
Then, copy everything except the folder: .git from the New repo folder to the Old repo folder
And run commands in the Old repo folder:
$ git status
To get if everything is fine. Git will detect that you have replaced a lot of files and deleted many of them. Check the output.
$ git add . && git commit -m "Replace with new content"
$ git push
And this will save your changes and send it to remote server.

pushing to master it locks one my folder on github

I have mother folder contain 3 different folders, I have pushed the parent folder to my github repository but on of three folders is locked,
I was following instruction on this website initialize a git repo, push to Github
folder called borroup is locked.
here is an image to the github
If by "locked" you mean you cannot click on it and see its content, check if that same borroup folder has, locally on your machine (from where you pushed) a .git subfolder.
That would make borroup a nested Git repo, which is referenced as a gitlink by the parent repo.

Github Showing Parent Directories

I have a website I'm developing, it's github is https://github.com/samclark2015/Project-Emerald. I have the repo under my user folder in a subdirectory. Now when I push the site to github, it updates the tree as Sites/Project Emerald/... I need the contents of the project emerald folder in the root of my github repo. How can I change the root of my repo on my PC?
Since you just did your first commit in your GitHub repo, the easiest way would be to:
delete your local .git directory you have under 'Site'
recreate your repo locally, and force push it:
That would give:
# in Site/Project-Emerald
git init .
git add remote origin https://samclark2015#github.com/samclark2015/Project-Emerald.git
git add .
git commit -m "first commit, again"
git push -force origin master
You would then see in your GitHub repo directly:
PHP
SpryAssets
pictures
README
config.inc
...
Other alternatives are mentioned in "My Git repository is in the wrong root directory. Can I move it? (../ instead of ./)"