简体   繁体   中英

Git: How do I see where I just "commited" my files to?

Totally new to using git. I used "git commit" to commit some files which I believe were staged. However, I now want to know where exactly these files went. How do I check this?

git log will show you the most recent commits. You can see a diff of the most recent commit with git show , too, so you can see what files were changed.

Read more about

git status

any file should be untracked or tracked (remember about ignored). If your file not under "Untracked" part so it already staged.

Git is a decentralized version control system, which means that committing does not share your code with anyone else. Instead, when you commit, the files stay locally on your computer and are committed to your local version of the git repository. These files only move to other machines when you push your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM