在bash脚本中“ 1>&2”是什么意思?
例如,bash脚本的以下行做什么?
echo "$1 is not a directory!" 1>&2
Run Code Online (Sandbox Code Playgroud)
我使用的是Mac OSX。我的bash脚本是:
if [ ! -d $1 ]; then
echo "$1 is not a directory" 1>&2
exit 1
fi
Run Code Online (Sandbox Code Playgroud) 初学者:我试图在系统要求将我的新文件“推送”到 GitHub 之前进行“拉取”。当我打字时,git push
它显示给我:
Merge branch 'master' of https://github.com/Wordworth/Test2
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
~
-- INSERT --
Run Code Online (Sandbox Code Playgroud)
怎么办?目标是在提交到 GitHub 存储库后推送我的文件,该存储库已存在同名本地存储库。任何提示?