Filip13

git - cmd

Oct 15th, 2024
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. Microsoft Windows [Version 10.0.22631.3880]
  2. (c) Microsoft Corporation. All rights reserved.
  3.  
  4. C:\Users\fstojanov22>cd "C:\Users\fstojanov22\Desktop\filip - programiranje - treca god\git dodatna"
  5.  
  6. C:\Users\fstojanov22\Desktop\filip - programiranje - treca god\git dodatna>git checkout -b test_branch
  7. Switched to a new branch 'test_branch'
  8.  
  9. C:\Users\fstojanov22\Desktop\filip - programiranje - treca god\git dodatna>git checkout main
  10. error: pathspec 'main' did not match any file(s) known to git
  11.  
  12. C:\Users\fstojanov22\Desktop\filip - programiranje - treca god\git dodatna>git checkout main
  13. error: pathspec 'main' did not match any file(s) known to git
  14.  
  15. C:\Users\fstojanov22\Desktop\filip - programiranje - treca god\git dodatna>git add test.txt
  16.  
  17. C:\Users\fstojanov22\Desktop\filip - programiranje - treca god\git dodatna>git commit -m "test_file"
  18. [test_branch (root-commit) 28baffe] test_file
  19. Committer: Filip Stojanov <[email protected]>
  20. Your name and email address were configured automatically based
  21. on your username and hostname. Please check that they are accurate.
  22. You can suppress this message by setting them explicitly. Run the
  23. following command and follow the instructions in your editor to edit
  24. your configuration file:
  25.  
  26. git config --global --edit
  27.  
  28. After doing this, you may fix the identity used for this commit with:
  29.  
  30. git commit --amend --reset-author
  31.  
  32. 1 file changed, 4 insertions(+)
  33. create mode 100644 test.txt
  34.  
  35. C:\Users\fstojanov22\Desktop\filip - programiranje - treca god\git dodatna>git push
  36. fatal: The current branch test_branch has no upstream branch.
  37. To push the current branch and set the remote as upstream, use
  38.  
  39. git push --set-upstream origin test_branch
  40.  
  41. To have this happen automatically for branches without a tracking
  42. upstream, see 'push.autoSetupRemote' in 'git help config'.
  43.  
  44.  
  45. C:\Users\fstojanov22\Desktop\filip - programiranje - treca god\git dodatna> git push --set-upstream origi
  46. n test_branch
  47. Enumerating objects: 3, done.
  48. Counting objects: 100% (3/3), done.
  49. Writing objects: 100% (3/3), 251 bytes | 125.00 KiB/s, done.
  50. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
  51. To https://github.com/VStojanovic-RG/rg2024-ppj3-fstojanov22.git
  52. * [new branch] test_branch -> test_branch
  53. branch 'test_branch' set up to track 'origin/test_branch'.
  54.  
  55. C:\Users\fstojanov22\Desktop\filip - programiranje - treca god\git dodatna>
Advertisement
Add Comment
Please, Sign In to add comment