Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git not pushing all files and folders

Tags:

git

github

In here you can see my Git Bash processIn here is my GitHub repo on GitHub websiteIn here is what my master directory looks like

I'm trying to push the whole directory onto my repository. Every time I try to do this, it just pushes the README, nothing else. As you can see in the second photo, there is only README on there. In the third picture is what my master directory looks like. The first picture is the whole process of adding and pushing, showing you that I've done the necessary steps.

What do I need to do to ensure all files and folders get pushed?

like image 916
user3397452 Avatar asked May 27 '14 02:05

user3397452


People also ask

How do I ignore a specific folder in Git?

Inside .gitignore, you can tell Git to ignore only a single file or a single folder by mentioning the name or pattern of that specific file or folder. You can also tell Git to ignore multiple files or folders using the same method. Typically, a .gitignore file gets placed in the root directory of the repository.

How to push files and folders in Git?

Install git utility in the machine where the folders and files which is going to be pushed are located. 2. After successfully install git utility, select the main folder which is used to store the folders and files which are going to be pushed. In other words, the folder will be initialized and associated with the Git version control.

How do I exclude a file from a git repository?

You can use any command to add all files you wish to stage (like git add. for example), followed by git reset to unstage the ones you want to exclude: git add. # excluding file: git reset -- path/to/file.txt # excluding folder: git reset -- path/to/folder/* # Temporarily Excluding File From Tracking

How to add all files to a git commit except some?

How to Add All Files to a Git Commit Except Some? Available since git v1.9.0, the : (exclude) pathspec (shorthand :! or :^) can be used to remove one (or more) paths from the included paths. For example, to add all paths except one/some, we could do either of the following:


1 Answers

Use git add * to add all files in a directory.

You also need to make sure you run git commit -m "your commit message" before you push

like image 94
Jephron Avatar answered Oct 13 '22 20:10

Jephron