Exercise 3 - daily routine 3. In 'wc1': a) make some order with folders - move all…
- User
Exercise 3 - daily routine 3. In 'wc1': a) make some order with folders
- move all pictures into new folder (pic) (use 'mv' and check the repo with 'status' and 'diff')
- move all javascript files into new folder (js) (use 'git mv' and check the repo) b) analize situation - what can you observe? (-: c) add to cache changes from a) (git add) d) check the repo e) create revision (git commit) f) check the repo g) send changes to remote repo (git push) h) check the repo i) add new file 'logo5.html', copy file 'logo.html' into it you did in the first exercise (git clone)
and change type of picture rotation (in the first row all should have 'left') j) check the repo (wc1), status, diff k) send changes to remote repo l) check the repo again
- Assistant
a) To make some order with folders in 'wc1':
- Move all pictures into a new folder named 'pic':
codemkdir pic mv *.jpg pic mv *.png pic mv *.gif pic- Move all javascript files into a new folder named 'js':
codemkdir js git mv *.js jsb) After moving the files, you can observe that the files have been moved to their respective folders. The 'pic' folder now contains all the pictures, and the 'js' folder contains all the javascript files.
c) Add the changes to the cache:
codegit add .d) Check the repo:
codegit statuse) Create a revision:
codegit commit -m "Moved pictures to pic folder and javascript files to js folder"f) Check the repo:
codegit logg) Send changes to the remote repo:
- User
Exercise 5 - empty folder, daily routine con't 5. In 'wc2': a) create new empty catalog 'html'
- check status - what happened?
- send changes to remote repository (how?)
- check status b) in 'html' folder place all files with extension '.html'
- check status, but don't commit yet c) create new file "logo_jq2.js", copy "logo_jq1.js" and change parameters (delay, speed, timeout) for rotation of type 'slideY'
- check the repo and analyze messages
- send changes to remote repository
- check the repo again d) test your project - what are the conclusions?
- Assistant
a) In 'wc2':
- Create a new empty directory 'html':
codemkdir html- Check the status:
codegit statusYou will notice that the 'html' directory is not tracked by Git since it's empty. Git only tracks files, not empty directories.
- To send changes to the remote repository, you first need to add a file to the 'html' directory. For example, you can create an empty file named '.gitkeep' to keep the directory in the repository:
codetouch html/.gitkeep git add html/.gitkeep git commit -m "Added empty html directory" git push origin master- Check the status:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.