【Git】git push -u origin master 的含义和 -u 的含义

由于远程库是空的,我们第一次推送master分支时,加上了-u参数,Git不但会把本地的master分支内容推送的远程新的master分支,还会把本地的master分支和远程的master分支关联起来,在以后的推送或者拉取时就可以简化命令。

 help git push -u origin master
pushd: pushd [-n] [+N | -N | dir]
    Add directories to stack.

    Adds a directory to the top of the directory stack, or rotates
    the stack, making the new top of the stack the current working
    directory.  With no arguments, exchanges the top two directories.

    Options:
      -n        Suppresses the normal change of directory when adding
                directories to the stack, so only the stack is manipulated.

    Arguments:
      +N        Rotates the stack so that the Nth directory (counting
                from the left of the list shown by `dirs', starting with
                zero) is at the top.

      -N        Rotates the stack so that the Nth directory (counting
                from the right of the list shown by `dirs', starting with
                zero) is at the top.

      dir       Adds DIR to the directory stack at the top, making it the
                new current working directory.

    The `dirs' builtin displays the directory stack.

    Exit Status:
    Returns success unless an invalid argument is supplied or the directory
    change fails.

pushd: pushd [-n] [+N | -n | dir]
将目录添加到堆栈中。

将目录添加到目录堆栈的顶部,或进行旋转
堆栈,使堆栈的新顶部成为当前工作状态
目录中。在没有参数的情况下,交换前两个目录。

选项:
-n在添加时抑制目录的正常更改
目录到堆栈,因此只操作堆栈。

参数:
+N旋转堆栈使第N个目录(计数)
从“dirs”显示的列表左侧开始
零)在顶部。

-N旋转堆栈,使第n个目录(计数)
从“dirs”所示列表的右侧开始
零)在顶部。

将dir添加到顶部的目录堆栈中,使其成为
新的当前工作目录。

 -S        use the `soft' resource limit
      -H        use the `hard' resource limit
      -a        all current limits are reported
      -b        the socket buffer size
      -c        the maximum size of core files created
      -d        the maximum size of a process's data segment
      -e        the maximum scheduling priority (`nice')
      -f        the maximum size of files written by the shell and its children
      -i        the maximum number of pending signals
      -k        the maximum number of kqueues allocated for this process
      -l        the maximum size a process may lock into memory
      -m        the maximum resident set size
      -n        the maximum number of open file descriptors
      -p        the pipe buffer size
      -q        the maximum number of bytes in POSIX message queues
      -r        the maximum real-time scheduling priority
      -s        the maximum stack size
      -t        the maximum amount of cpu time in seconds
      -u        the maximum number of user processes
      -v        the size of virtual memory
      -x        the maximum number of file locks
      -P        the maximum number of pseudoterminals
      -T        the maximum number of threads
-让我们使用“软”资源限制
-H使用“硬”资源限制
-报告所有当前限制
-b套接字缓冲区大小
-c创建的核心文件的最大大小
进程数据段的最大大小
-e最大调度优先级(' nice')
-f shell及其子程序所写文件的最大大小
-待定信号的最大数目
为该进程分配的最大kqueue数
进程可以锁定到内存中的最大大小
-m最大常驻集大小
-n打开文件描述符的最大数目
-p管道缓冲区大小
-q POSIX消息队列中的最大字节数
-r最大实时调度优先级
-最大堆栈大小
t以秒为单位的cpu时间的最大值
-u用户进程的最大数量
-v虚拟内存的大小
-x文件锁的最大数量
-P伪终端的最大数目
t线程的最大数量

  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值