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?
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.
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.
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? 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:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With