Beginner question/problem. I used Git to commit a file to a repo on Github and used git show to confirm that it had been successful, but I'm unable to see the file on GitHub. Why is that? Are there any simple instructions for syncing up a file to GitHub that I could use to verify or indicate that it was pushed to GitHub?
相关问题
- How to add working directory to deployment in GitH
- How to account for clock offsets in a distributed
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
相关文章
- 请教Git如何克隆本地库?
- java开发bug问题:GitHub授权登录无法获取授权账号信息?
- Is there a Github markdown language identifier for
- “no implicit conversion of Integer into String” er
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
Are u pushing directly to the master branch?
you can always do a git shortlog to see your commits for accuracy. Add a limit to the number of commits.
e.g. git shortlog -10 will give you the last 10 commits that have been pushed to the remote.
Or maybe your local branch's refs do not point to the remote branches refs? Try a git fetch and then a git push --set-upstream
This will set the remote branch to hold everything you push from your local branch.
You don't commit files directly to a repo on GitHub, you make commits in your local clone and then push those commits to remote repository, in this case GitHub.
git show
does not tell you if the push has been successful or not, it just shows the contents of the last commit.Did you do a
git push
?You don't sync files with git, you work with commits. You use
git push
to push local commits to a remote, andgit pull
orgit fetch
to get commits from a remote to your local repo.The output of
git push
tells you if the push succeeded or not.