导读 linux怎样命令行上传git 你是你是要通过git命令上传东西,还是想上传git到服务器上面,你可以先通过yum安装git 如何上传

linux怎样命令行上传git

你是你是要通过git命令上传东西,还是想上传git到服务器上面,你可以先通过yum安装git

如何上传logs 如何上传1-15分钟视频如何上传logs 如何上传1-15分钟视频


# yum install git

已加载插件:fastestmirror, refresh-packagekit, security

设置安装进程

Loading mirror speeds from cached hostfile

base | 3.7 kB 00:00

epel | 4.3 kB 00:00

epel/primary_db | 5.9 MB 00:05

extras | 3.4 kB 00:00

hhvm | 2.9 kB 00:00

shells_fish_release_2 | 1.2 kB 00:00

updates | 3.4 kB 00:00

updates/primary_db | 821 kB 00:01

upgrade | 1.9 kB 00:00

virtualbox/signature | 181 B 00:00

virtualbox/signature | 1.1 kB 00:00 ...

包 git-1.7.1-8.el6.x86_64 已安装并且是最新版本

无须任何处理#git --help

usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]

[-p|--paginate|--no-pager] [--no-replace-objects]

[--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]

[--help] COMMAND [ARGS]

The most commonly used git commands are:

add Add file contents to the index

bisect Find by binary search the change that introduced a bug

branch List, create, or delete branches

checkout Checkout a branch or paths to the working tree

clone Clone a repository into a new directory

commit Record changes to the repository

diff Show changes between commits, commit and working tree, etc

fetch Download objects and refs from another repository

grep Print lines matching a pattern

init Create an empty git repository or reinitialize an existing one

log Show commit logs

merge Join two or more development histories together

mv Move or rename a file, a directory, or a symlink

pull Fetch from and merge with another repository or a local branch

push Update remote refs along with associated objects

rebase Forward-port local commits to the updated upstream head

reset Reset current HEAD to the specified state

rm Remove files from the working tree and from the index

show Show various types of objects

status Show the working tree status

tag Create, list, delete or verify a tag object signed with GPG

See 'git help COMMAND' for more information on a specific command.下面我给介绍一种从本地上传到服务器的命令:

命令rz和sz命令,首先你需要安装lrzsz库

#rz --help

rz version 0.12.20

Usage: rz [options] [filename.if.xmodem]

Receive files with ZMODEM/YMODEM/XMODEM protocol

(X) = option applies to XMODEM only

(Y) = option applies to YMODEM only

(Z) = option applies to ZMODEM only

-+, --append append to existing files

-a, --ascii ASCII transfer (change CR/LF to LF)

-b, --binary binary transfer

-B, --bufsize N buffer N bytes (N==auto: buffer whole file)

-c, --with-crc Use 16 bit CRC (X)

-C, --allow-remote-commands allow execution of remote commands (Z)

-D, --null write all received data to /dev/null

--delay-startup N sleep N seconds before doing anything

-e, --escape Escape control characters (Z)

-E, --rename rename any files already existing

--errors N generate CRC error every N bytes (debugging)

-h, --help Help, print this usage message

-m, --min-bps N stop transmission if BPS below N

-M, --min-bps-time N for at least N seconds (default: 120)

-O, --disable-timeouts disable timeout code, wait forever for data

--o-sync open output file(s) in synchronous write mode

-p, --protect protect existing files

-q, --quiet quiet, no progress reports

-r, --resume try to resume interrupted file transfer (Z)

-R, --restricted restricted, more secure mode

-s, --stop-at {HH:MM|+N} stop transmission at HH:MM or in N seconds

-S, --timesync request remote time (twice: set local time)

--syslog[=off] turn syslog on or off, if possible

-t, --timeout N set timeout to N tenths of a second

-u, --keep-uppercase keep upper case filenames

-U, --unrestrict disable restricted mode (if allowed to)

-v, --verbose be verbose, provide debugging information

-w, --windowsize N Window is N bytes (Z)

-X --xmodem use XMODEM protocol

-y, --overwrite Yes, clobber existing file if any

--ymodem use YMODEM protocol

-Z, --zmodem use ZMODEM protocol

short options use the same arguments as the long ones

#sz --help

sz version 0.12.20

Usage: sz [options] file ...

or: sz [options] -{c|i} COMMAND

Send file(s) with ZMODEM/YMODEM/XMODEM protocol

(X) = option applies to XMODEM only

(Y) = option applies to YMODEM only

(Z) = option applies to ZMODEM only

-+, --append append to existing destination file (Z)

-2, --twostop use 2 stop bits

-4, --try-4k go up to 4K blocksize

--start-4k start with 4K blocksize (doesn't try 8)

-8, --try-8k go up to 8K blocksize

--start-8k start with 8K blocksize

-a, --ascii ASCII transfer (change CR/LF to LF)

-b, --binary binary transfer

-B, --bufsize N buffer N bytes (N==auto: buffer whole file)

-c, --command COMMAND execute remote command COMMAND (Z)

-C, --command-tries N try N times to execute a command (Z)

-d, --dot-to-slash change '.' to '/' in pathnames (Y/Z)

--delay-startup N sleep N seconds before doing anything

-e, --escape escape all control characters (Z)

-E, --rename force receiver to rename files it already has

-f, --full-path send full pathname (Y/Z)

-i, --immediate-command CMD send remote CMD, return immediately (Z)

-h, --help print this usage message

-k, --1k send 1024 byte packets (X)

-L, --packetlen N limit subpacket length to N bytes (Z)

-l, --framelen N limit frame length to N bytes (l>=L) (Z)

-m, --min-bps N stop transmission if BPS below N

-M, --min-bps-time N for at least N seconds (default: 120)

-n, --newer send file if source newer (Z)

-N, --newer-or-longer send file if source newer or longer (Z)

-o, --16-bit-crc use 16 bit CRC instead of 32 bit CRC (Z)

-O, --disable-timeouts disable timeout code, wait forever

-p, --protect protect existing destination file (Z)

-r, --resume resume interrupted file transfer (Z)

-R, --restricted restricted, more secure mode

-q, --quiet quiet (no progress reports)

-s, --stop-at {HH:MM|+N} stop transmission at HH:MM or in N seconds

--tcp build a TCP connection to transmit files

--tcp-server open socket, wait for connection

-u, --unlink unlink file after transmission

-U, --unrestrict turn off restricted mode (if allowed to)

-v, --verbose be verbose, provide debugging information

-w, --windowsize N Window is N bytes (Z)

-X, --xmodem use XMODEM protocol

-y, --overwrite overwrite existing files

-Y, --overwrite-or-skip overwrite existing files, else skip

--ymodem use YMODEM protocol

-Z, --zmodem use ZMODEM protocol

short options use the same arguments as the long ones

More information can be used for reference 。

怎么修改wcl日志

打开WCL网站:

注册/登录WCL帐号

创建/加入公会(如果仅仅是私人日志可跳过本步)

安装AIR组件及WCL战斗日志上传工具

开启/关闭战斗日志

上传战斗日志

也可以在其中修改

请点击输入图片描述

/combatlog

魔兽世界怎么把战报上传到wcl wcl上传战报方法介绍

魔兽世界战报上传到wcl需要,手动在游戏中打开高级战斗日志功能,同时删除World of Warcraft_classic_Logs文件夹下的WoWCombatLog.txt文件,确保日志中没有无效部分。

1.在上传魔兽世界战斗日志前,你必须拥有一个已经完成激活的WCL账号注册。

2.下载WCL官方软件并完成安装,可在官方首页登陆后下载或在下方链接中下载,安装完成后按照指示登陆。

3.若之前没有上传经验,则需要手动在游戏中打开”高级战斗日志“功能,同时删除World of Warcraft_classic_Logs文件夹下的WoWCombatLog.txt文件,确保日志中没有无效部分。

4.游戏中打开高级战斗。

5.利用插件打开log自动记录。

6.上传并分析。

mac下和linux上传和下传文件的工具哪个好用

一、从服务器下载文件到本机

1、修改文件所属

由于只能下载文件所属为自己的文件,所以要做修改文件所属的操作。

chown hudelei /opt/logs/tomcat/app/tomcat_stk_nm/stk-time.log

2、下载到本机

scp hi@10.10.30.10:/opt/logs/tomcat/app/tomcat_stk_nm/stk-time.log /Users/hvvi/Desktop

3、输入密码

二、上传文件夹到服务器

1、scp -r /Users/hddvvi/Desktop/load hi@10.10.30.10:/opt/logs/tomcat/app/tomcat_stk_nm/

注意:加上 -r,否则会报错:not a regular file

2、输入密码3、文件移动上上层 mv filename.java 。。/

注:本文使用的是mac本机和linux服务器。

mac lrzsz 安装