-
Notifications
You must be signed in to change notification settings - Fork 6
Git ex1/dorondollev #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,114 @@ | |||
| Git Basics (commit, diff, branches) | |||
| =================================== | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
|
|
||
| M app.py | ||
|
|
||
| Cherry picking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
| for example, if you'll pick a commit that is in progress and it was first introduced in an unpicked commit, | ||
| it won't apply until you'll fix the unordered pick | ||
|
|
||
| Changes in working tree and switch branches |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good
| Reset | ||
| ===== | ||
| 2. | ||
| 1. git resets the last commit, in our case .env changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file 10.txt should have changed, not .env
| ===== | ||
| 2. | ||
| 1. git resets the last commit, in our case .env changed | ||
| 2. git resets the index but not the working tree, it means that the files .env and config.json are unadded to index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, files 9.txt and 10.txt should have changed. This is probably because forgot to switch to the correct branch. But regardless the specific files, the answer is correct
finished Git and Pycharm ex-1
thank you for extending the time for me