Advertisement
OldManRiver

Untitled

Jan 2nd, 2020
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.31 KB | None | 0 0
  1. #! /bin/bash
  2. #  Init the /Syncs Repository
  3.  
  4. curdir=$PWD;
  5. echo "Working Dir => '$curdir'";
  6. cd /Syncs;
  7. git init;
  8. git branch 'Syncs';
  9. git config user.name "$USER";
  10. git
  11. git checkout 'Syncs';
  12.  
  13. cd $curdir;
  14.  
  15.  
  16. Produce errors:
  17.  
  18. ************************************************************
  19. git_Syncs_init.sh
  20. Working Dir => '/'
  21. Reinitialized existing Git repository in /Syncs/.git/
  22. fatal: Not a valid object name: 'master'.
  23. usage: git [--version] [--help] [-C <path>] [-c name=value]
  24.            [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
  25.            [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
  26.            [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
  27.            <command> [<args>]
  28.  
  29. The most commonly used git commands are:
  30.    add        Add file contents to the index
  31.    bisect     Find by binary search the change that introduced a bug
  32.    branch     List, create, or delete branches
  33.    checkout   Checkout a branch or paths to the working tree
  34.    clone      Clone a repository into a new directory
  35.    commit     Record changes to the repository
  36.    diff       Show changes between commits, commit and working tree, etc
  37.    fetch      Download objects and refs from another repository
  38.    grep       Print lines matching a pattern
  39.    init       Create an empty Git repository or reinitialize an existing one
  40.    log        Show commit logs
  41.    merge      Join two or more development histories together
  42.    mv         Move or rename a file, a directory, or a symlink
  43.    pull       Fetch from and integrate with another repository or a local branch
  44.    push       Update remote refs along with associated objects
  45.    rebase     Forward-port local commits to the updated upstream head
  46.    reset      Reset current HEAD to the specified state
  47.    rm         Remove files from the working tree and from the index
  48.    show       Show various types of objects
  49.    status     Show the working tree status
  50.    tag        Create, list, delete or verify a tag object signed with GPG
  51.  
  52. 'git help -a' and 'git help -g' lists available subcommands and some
  53. concept guides. See 'git help <command>' or 'git help <concept>'
  54. to read about a specific subcommand or concept.
  55. error: pathspec 'Syncs' did not match any file(s) known to git.
  56. ***********************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement